The GitHub Actions job "Lint" on tvm.git/main has failed.
Run started by GitHub user tlopex (triggered by tlopex).

Head commit for run:
7f619733d130918e0bd63ea6b732663190539806 / Akaash Parthasarathy 
<[email protected]>
[Fix][Relax][Torch] Align retained expand dimensions by trailing rank (#20137)

`torch.Tensor.expand` aligns existing input dimensions with the trailing
dimensions of the requested shape when new leading dimensions are
introduced. The Torch frontend previously resolved `-1` using the output
dimension index directly. For an input shaped `(tokens, 3)`,
`x.expand(2, -1, -1)` thus selected the wrong input dimensions and
eventually accessed beyond the input rank.

This PR:
- Accounts for newly introduced leading dimensions when resolving `-1`
- Aligns retained dimensions against the trailing input rank
- Rejects `-1` for new leading dimensions, matching PyTorch semantics.=
- Preserves the FX metadata fallback when the Relax input shape is
unavailable

Report URL: https://github.com/apache/tvm/actions/runs/32914163401

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to