Skip to content
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

fix: allow torch.Symint in slice_scatter_decomposition #3132

Closed
Changes from all commits
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
6 changes: 3 additions & 3 deletions py/torch_tensorrt/dynamo/lowering/_decompositions.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@ def slice_scatter_decomposition(
step = 1

# Ensure start, end, and step are all integers
assert isinstance(start, int), "start must be an integer"
assert isinstance(end, int), "end must be an integer"
assert isinstance(step, int), "step must be an integer"
assert isinstance(start, (int, torch.SymInt)), "start must be an integer"
assert isinstance(end, (int, torch.SymInt)), "end must be an integer"
assert isinstance(step, (int, torch.SymInt)), "step must be an integer"

src_dim = src_tensor.shape
# step == 0 is not a valid torch case
Expand Down
Loading