pytorch
a5aeb374 - Don't throw when type is used in TorchScript (#28053)

Commit
6 years ago
Don't throw when type is used in TorchScript (#28053) Summary: Type objects in python have an attribute `__abstractmethods__` that throws when it is accessed, so we were failing with an AttributeError whenever a type was used in TorchScript. This pr prevents that error from happening. We can't just throw when a type is used because it could be used to access a static method: https://github.com/pytorch/pytorch/pull/27163 Pull Request resolved: https://github.com/pytorch/pytorch/pull/28053 Differential Revision: D18332347 Pulled By: eellison fbshipit-source-id: 9c7f2220f92674ad4d903621d9762cecc566ab0d
Author
Elias Ellison
Parents
Loading