Starter Task 1 (#64927)
authorSamuel Salas <samsalas@fb.com>
Wed, 15 Sep 2021 18:49:28 +0000 (11:49 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 15 Sep 2021 18:55:07 +0000 (11:55 -0700)
commitf1ce64a58e5b68c9a8eb274e271242c60ee5afba
tree582c7ceffe32c89bd77ce5f15a63923b0c725614
parentdab6496dbe9d959dfde89125644ed14d9044326a
Starter Task 1 (#64927)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/64927

Mypy error corrections

Test Plan: Corrected mypy errors to make code less prone to bugs by modifying types or adding lines that avoid special undesired cases e.g. asserting a variable to not None.

Reviewed By: wushirong

Differential Revision: D30901654

fbshipit-source-id: daae8692603b8b38203a98f673c455749c2fb855
torch/fx/experimental/fx2trt/converters/acc_ops_converters.py
torch/fx/experimental/fx2trt/example/fx2trt_example.py
torch/fx/experimental/fx2trt/example/quantized_resnet_test.py
torch/fx/experimental/fx_acc/acc_normalizer.py
torch/fx/experimental/fx_acc/acc_ops.py
torch/fx/experimental/fx_acc/acc_tracer.py