[dynamo] `VariableTracker.call_method` requires a name (#88311)
Summary: as title
Test Plan: Before: N2743445, After: N2748186. Note there's a new error, but at least we got past the easy one.
Differential Revision: D40938415
Pull Request resolved: https://github.com/pytorch/pytorch/pull/88311
Approved by: https://github.com/brad-mengchi
diff --git a/test/test_datapipe.py b/test/test_datapipe.py
index dbc5a5a..b5de6a5 100644
--- a/test/test_datapipe.py
+++ b/test/test_datapipe.py
@@ -33,7 +33,7 @@
import torch.utils.data.datapipes as dp
import torch.utils.data.graph
import torch.utils.data.graph_settings
-from torch.testing._internal.common_utils import TestCase, run_tests, suppress_warnings
+from torch.testing._internal.common_utils import TestCase, run_tests, suppress_warnings, skipIfTorchDynamo
from torch.utils.data import (
DataLoader,
DataChunk,
@@ -220,6 +220,7 @@
for api in ['open', 'read', 'close']:
self.assertTrue(api in s)
+ @skipIfTorchDynamo
def test_api(self):
fd = TestStreamWrapper._FakeFD("")
wrap_fd = StreamWrapper(fd)
diff --git a/torch/_dynamo/variables/user_defined.py b/torch/_dynamo/variables/user_defined.py
index 2d33c83..09d7893 100644
--- a/torch/_dynamo/variables/user_defined.py
+++ b/torch/_dynamo/variables/user_defined.py
@@ -68,7 +68,7 @@
return variables.ListVariable(subs_as_vars, **options)
- return super().call_method(tx, args, kwargs)
+ return super().call_method(tx, name, args, kwargs)
def call_function(
self, tx, args: "List[VariableTracker]", kwargs: "Dict[str, VariableTracker]"