Skip to content

[Relax][Frontend]Fix: Output tensor with zero dimension after torch.u…#17990

Merged
yongwww merged 2 commits intoapache:mainfrom
eaten-cake:main
May 20, 2025
Merged

[Relax][Frontend]Fix: Output tensor with zero dimension after torch.u…#17990
yongwww merged 2 commits intoapache:mainfrom
eaten-cake:main

Conversation

@eaten-cake
Copy link
Copy Markdown
Contributor

This PR is for issue: #17989. I've also updated tests/python/relax/test_frontend_from_exported_program.py accordingly.

n_section = list(range(1, selections + 1))

will cause the conversion to produce an extra tensor with a dimension of 0.

@yongwww yongwww merged commit ffa82b3 into apache:main May 20, 2025
10 checks passed
ShiboXing pushed a commit to ShiboXing/tvm that referenced this pull request Aug 10, 2025
apache#17990)

* [Relax][Frontend]Fix: Output tensor with zero dimension after torch.unbind to relax conversion

* Fix: Output tensor with zero dimension after torch.unbind to relax conversion
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.

2 participants