8000 Add CPython int/float tests by guilhermeleobas · Pull Request #150795 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

Add CPython int/float tests #150795

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update
[ghstack-poisoned]
  • Loading branch information
guilhermeleobas committed Apr 30, 2025
commit 48c20980f9a825d0ed901a488a7b223ee56d91b9
12 changes: 1 addition & 11 deletions torch/_dynamo/symbolic_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -1175,17 +1175,7 @@ def call_function(
inner_fn = fn.fn
if inner_fn and callable(inner_fn) and is_forbidden(inner_fn):
raise AssertionError(f"Attempt to trace forbidden callable {inner_fn}")

try:
self.push(fn.call_function(self, args, kwargs)) # type: ignore[arg-type]
except (exc.ObservedException, exc.TorchDynamoException):
raise
except Exception as e:
exc.raise_observed_exception(
type(e),
self,
args=list(map(ConstantVariable.create, e.args)),
)
self.push(fn.call_function(self, args, kwargs)) # type: ignore[arg-type]

def inline_generator_function(self, fn, args, kwargs):
"""
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.
0