allow lists to contain any tensor type (#17321)
authorMichael Suo <suo@fb.com>
Thu, 21 Feb 2019 08:15:59 +0000 (00:15 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 21 Feb 2019 08:18:50 +0000 (00:18 -0800)
commit2c302b6ea68eb9024f5f1b9cdc41e3bf39556fa2
treeee047d6f91e7467d7f65b071fbbb2858a1ec1359
parentd92ddcf7ca5405e48d53daafd2d8b2fe7e8ff7fa
allow lists to contain any tensor type (#17321)

Summary:
If something is a TensorList, it should be a list of `TensorType`, not a list of some specialized type.
Fixes #17140, #15642
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17321

Differential Revision: D14158192

Pulled By: suo

fbshipit-source-id: ba8fe6ae8d618c73b23cd00cbcb3111c390c5514
test/test_jit.py
torch/csrc/jit/script/compiler.cpp