[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:
Yanbo Liang
2024-04-20 08:26:27 +00:00
committed by PyTorch MergeBot
parent f20e3ae0c3
commit a3e3693afc

View File

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