[FX] Validate data type of target on Node Construction (#64050)
authorPatrick Hu <patrickhu@fb.com>
Fri, 27 Aug 2021 20:37:38 +0000 (13:37 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 27 Aug 2021 20:40:57 +0000 (13:40 -0700)
commit18cb3fc91004ac9e551301748246aaa2a5a5dd04
tree7f4c668585f9c652ccf2e3643236f9fbddd56544
parentff4569ae2939c3e81092fdf43c9d5f2f08453c42
[FX] Validate data type of target on Node Construction (#64050)

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

Test Plan: Imported from OSS

Reviewed By: jamesr66a

Differential Revision: D30585535

Pulled By: yqhu

fbshipit-source-id: 96778a87e75f510b4ef42f0e5cf76b35b7b2f331
test/test_fx.py
torch/fx/graph.py
torch/fx/node.py