pytorch
4380934b - [JIT] Dont use specialized tensor type (#46130)

Commit
4 years ago
[JIT] Dont use specialized tensor type (#46130) Summary: Fix for https://github.com/pytorch/pytorch/issues/46122 For `Any`, we infer the type of the ivalue to set the ivalue's type tag. When we saw a Tensor, we would use a specialized Tensor type, so when `Dict[str, Tensor]` was passed in as any `Any` arg it would be inferred as `Dict[str, Float(2, 2, 2, 2)]` which breaks runtime `isinstance` checking. Pull Request resolved: https://github.com/pytorch/pytorch/pull/46130 Reviewed By: glaringlee Differential Revision: D24261447 Pulled By: eellison fbshipit-source-id: 8a2bb26ce5b6c56c8dcd8db79e420f4b5ed83ed5
Author
Elias Ellison
Parents
Loading