mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Implement VariableTracker.python_type() (#134215)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/134215 Approved by: https://github.com/amjames, https://github.com/jansel
This commit is contained in:
committed by
PyTorch MergeBot
parent
0043dcd79e
commit
2c99f17a32
@ -30,9 +30,6 @@ class ItertoolsVariable(VariableTracker):
|
||||
def __repr__(self) -> str:
|
||||
return f"ItertoolsVariable({self.value})"
|
||||
|
||||
def python_type(self):
|
||||
return type(self.value)
|
||||
|
||||
def as_python_constant(self):
|
||||
return self.value
|
||||
|
||||
|
Reference in New Issue
Block a user