Skip to content

Commit

Permalink
Remove VariableTracker.as_specialized (#112363)
Browse files Browse the repository at this point in the history
Summary:
My local testing can't seem to find this function actually doing anything.

X-link: pytorch/pytorch#112363
Approved by: https://github.com/yanboliang

Reviewed By: ZainRizvi

Differential Revision: D50819849

Pulled By: jansel

fbshipit-source-id: 2ef4dd2fef653986c1211dbcc709c3ae29751c2f
  • Loading branch information
jansel authored and facebook-github-bot committed Oct 31, 2023
1 parent 2d7c770 commit f13ea81
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions userbenchmark/dynamo/dynamobench/_dynamo/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,16 +879,6 @@ def check_numpy_ndarray_args(args, kwargs):
)


def specialize_args_kwargs(tx, args, kwargs):
specialized_args = []
specialized_kwargs = {}
for x in args:
specialized_args.append(x.as_specialized(tx))
for k, v in kwargs.items():
specialized_kwargs.update({k: v.as_specialized(tx)})
return specialized_args, specialized_kwargs


dict_values = type(dict().values())
odict_values = type(collections.OrderedDict().values())
tuple_iterator = type(iter(tuple()))
Expand Down

0 comments on commit f13ea81

Please sign in to comment.