Skip to content

Commit 8e6edf8

Browse files
anijain2305facebook-github-bot
authored andcommitted
Support tuple.__new__ (#145558)
Summary: X-link: pytorch/pytorch#145558 Approved by: https://github.com/jansel, https://github.com/StrongerXi ghstack dependencies: #145519, #145547 Reviewed By: ZainRizvi Differential Revision: D68740810 fbshipit-source-id: eda28069424d0d8bc56feb8a58cd733cc7c9a687
1 parent be908b3 commit 8e6edf8

File tree

1 file changed

+3
-0
lines changed
  • userbenchmark/dynamo/dynamobench/_dynamo

1 file changed

+3
-0
lines changed

userbenchmark/dynamo/dynamobench/_dynamo/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2298,6 +2298,9 @@ def check_numpy_ndarray_args(args, kwargs):
22982298
if callable(method)
22992299
}
23002300

2301+
tuple_new = tuple.__new__
2302+
tuple_methods = {method for method in tuple.__dict__.values() if callable(method)}
2303+
23012304

23022305
def builtin_dict_keys(d):
23032306
# Avoids overridden keys method of the dictionary

0 commit comments

Comments
 (0)