Skip to content

Commit

Permalink
Support tuple.__new__ (#145558)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
anijain2305 authored and facebook-github-bot committed Jan 28, 2025
1 parent be908b3 commit 8e6edf8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions userbenchmark/dynamo/dynamobench/_dynamo/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2298,6 +2298,9 @@ def check_numpy_ndarray_args(args, kwargs):
if callable(method)
}

tuple_new = tuple.__new__
tuple_methods = {method for method in tuple.__dict__.values() if callable(method)}


def builtin_dict_keys(d):
# Avoids overridden keys method of the dictionary
Expand Down

0 comments on commit 8e6edf8

Please sign in to comment.