mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
[Dynamo] Fix missing bracket in ListVariable (#124532)
Fixes #ISSUE_NUMBER Pull Request resolved: https://github.com/pytorch/pytorch/pull/124532 Approved by: https://github.com/williamwen42
This commit is contained in:
committed by
PyTorch MergeBot
parent
f20e3ae0c3
commit
a3e3693afc
@ -272,7 +272,7 @@ class ListVariable(CommonListMethodsVariable):
|
||||
return list
|
||||
|
||||
def __repr__(self):
|
||||
return f"{self.__class__.__name__}(length={len(self.items)}"
|
||||
return f"{self.__class__.__name__}(length={len(self.items)})"
|
||||
|
||||
def reconstruct(self, codegen):
|
||||
codegen.foreach(self.items)
|
||||
|
Reference in New Issue
Block a user