Skip to content

Conversation

@vakumar1
Copy link

@vakumar1 vakumar1 commented Jan 26, 2026

  • the torch aten.cat op has a canonicalization rule that uses an assumption that every operand has the same rank and has the same shape (expect for the concatenation dim)
  • this assumption is not necessarily valid - the input tensors may be empty and have shape (0,) https://docs.pytorch.org/docs/stable/generated/torch.cat.html
  • --> if the operand tensor is empty it is skipped in the canonicalization rule

@vakumar1 vakumar1 marked this pull request as ready for review January 26, 2026 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant