Skip to content

[Relax][ONNX] Include the denominator epsilon in MeanVarianceNormalization - #21080

Open
JarvisDing-sdu wants to merge 2 commits into
apache:mainfrom
JarvisDing-sdu:codex/tvm-onnx-mvn-epsilon-1128
Open

JarvisDing-sdu wants to merge 2 commits into
apache:mainfrom
JarvisDing-sdu:codex/tvm-onnx-mvn-epsilon-1128

Conversation

@JarvisDing-sdu

Copy link
Copy Markdown

The ONNX function definition divides by sqrt(variance) + 1e-9. For a constant float32 input the current importer yields 0/0 instead of zero. The change was tested locally through Relax and the LLVM CPU backend against the expanded ONNX function.

The comparisons above were performed on the local research checkout. The patch applies to upstream 1091f2f. Prepared with assistance from OpenAI Codex.

@JarvisDing-sdu
JarvisDing-sdu marked this pull request as ready for review November 29, 2026 00:08

This branch has not been deployed

No deployments
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