Skip to content

[Relax][ONNX] Fix bug: Unsupported numpy or ml_dtypes dtype('O') when importing ONNX model using Relax frontend#18416

Merged
tlopex merged 1 commit into
apache:mainfrom
cchung100m:issue-18397
Nov 3, 2025
Merged

[Relax][ONNX] Fix bug: Unsupported numpy or ml_dtypes dtype('O') when importing ONNX model using Relax frontend#18416
tlopex merged 1 commit into
apache:mainfrom
cchung100m:issue-18397

Conversation

@cchung100m

Copy link
Copy Markdown
Contributor

This PR is trying to fix issues #18397.

If the input is a relax.PrimValue, the frontend should return relax.PrimValue(output.item()) instead of going through the numpy + astype path.

@cchung100m cchung100m changed the title [#18397] Fix bug: Unsupported numpy or ml_dtypes dtype('O') when importing ONNX model using Relax frontend [Relax][PyTorch] Fix bug: Unsupported numpy or ml_dtypes dtype('O') when importing ONNX model using Relax frontend Nov 2, 2025
@cchung100m cchung100m changed the title [Relax][PyTorch] Fix bug: Unsupported numpy or ml_dtypes dtype('O') when importing ONNX model using Relax frontend [Relax][ONNX] Fix bug: Unsupported numpy or ml_dtypes dtype('O') when importing ONNX model using Relax frontend Nov 2, 2025
@cchung100m cchung100m marked this pull request as ready for review November 3, 2025 06:29
@tlopex tlopex merged commit 1e28bf9 into apache:main Nov 3, 2025
11 checks passed
@cchung100m cchung100m deleted the issue-18397 branch November 4, 2025 15:03
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