Skip to content

guard_or_false cat ops #160250

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

Open
wants to merge 4 commits into
base: gh/laithsakka/254/base
Choose a base branch
from
Open
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
Update
[ghstack-poisoned]
  • Loading branch information
laithsakka committed Aug 9, 2025
commit ed37641139920436a395b02aa954e0b850d98453
4 changes: 3 additions & 1 deletion torch/_refs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2780,7 +2780,9 @@ def cat_compute_output_memory_format(inputs):

utils.check_same_device(*tensors, allow_cpu_scalar_tensors=False)

from torch.fx.experimental.symbolic_shapes import guard_or_false
from torch.fx.experimental.symbolic_shapes import (
guard_or_false,
)

# This is a bit tricky. Naively, you would expect to just pick one
# arbitrary tensor and check that all tensors match this tensor. However,
Expand Down
Loading