-
Story
-
Resolution: Done
-
Undefined
-
None
-
None
-
None
-
False
-
-
False
-
-
-
PyTorch Sprint 17
Narrow the return type annotation in "VariableTracker::call_obj_hasattr". Its return type is VariableTracker but it can be narrowed to be a ConstantVariable as it only returns True/False.
Since VariableTracker is return type of ConstantVariable.create() . For safety , overloaded ConstantVariable.create is added
Version numbers (base image, wheels, builder, etc):
Steps to Reproduce:
1.
2.
3.
Actual results:
Expected results:
Additional info: