Skip to content

Commit ac67137

Browse files
generatedunixname499836121facebook-github-bot
generatedunixname499836121
authored andcommitted
Allow dynamo to handle str.xxx() (#146587)
Summary: Fixes #146350 X-link: pytorch/pytorch#146587 Approved by: https://github.com/zou3519 Reviewed By: huydhn Differential Revision: D69538165 fbshipit-source-id: 28bed9d47aab6c4ac8218a80c2ac40b670f5e118
1 parent e935426 commit ac67137

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

userbenchmark/dynamo/dynamobench/_dynamo/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2359,6 +2359,8 @@ def check_numpy_ndarray_args(args, kwargs):
23592359
list_methods = {method for method in list.__dict__.values() if callable(method)}
23602360
list_getitem = list.__getitem__
23612361

2362+
str_methods = {method for method in str.__dict__.values() if callable(method)}
2363+
23622364

23632365
def builtin_dict_keys(d):
23642366
# Avoids overridden keys method of the dictionary

0 commit comments

Comments
 (0)