Skip to content

Commit

Permalink
Minor compile time optimizations in torch.py (#121615)
Browse files Browse the repository at this point in the history
Summary:
X-link: pytorch/pytorch#121615
Approved by: https://github.com/oulgen

Reviewed By: osalpekar

Differential Revision: D54919135

Pulled By: jansel

fbshipit-source-id: 6d6b08f4dbbaac9581c67385b551ded235d92a66
  • Loading branch information
jansel authored and facebook-github-bot committed Mar 15, 2024
1 parent 0a4eeed commit 8f9a226
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions userbenchmark/dynamo/dynamobench/_dynamo/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1033,6 +1033,10 @@ def check_unspec_python_args(args, kwargs):
return unspec_count > 0


def check_unspec_or_constant_args(args, kwargs):
return check_constant_args(args, kwargs) or check_unspec_python_args(args, kwargs)


def check_numpy_ndarray_args(args, kwargs):
from .variables.tensor import NumpyNdarrayVariable

Expand Down

0 comments on commit 8f9a226

Please sign in to comment.