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:
Tom Ritchford
2024-09-04 13:44:38 +00:00
committed by PyTorch MergeBot
parent 0043dcd79e
commit 2c99f17a32
9 changed files with 4 additions and 34 deletions

View File

@ -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