We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Batch norm is defined in ONNX as
Y = (X - mean) * scale / Sqrt(var+eps) + beta
when mean and var (which are input variable in ONNX) are seen as constant, and scale & beta are parameters, so always constant, we can precompute
a = scale / Sqrt(var+eps) b = - mean * scale / Sqrt(var+eps) + beta
and then the operation reduces to
Y = a * X + b
The text was updated successfully, but these errors were encountered:
Merge pull request onnx#85 from C-P2PN897/merge-main-fb9915e
8472704
Merge onnx/onnx-mlir fb9915e into zosdev/onnx-mlir metis
doru1004
No branches or pull requests
Batch norm is defined in ONNX as
Y = (X - mean) * scale / Sqrt(var+eps) + beta
when mean and var (which are input variable in ONNX) are seen as constant, and scale & beta are parameters, so always constant, we can precompute
a = scale / Sqrt(var+eps)
b = - mean * scale / Sqrt(var+eps) + beta
and then the operation reduces to
Y = a * X + b
The text was updated successfully, but these errors were encountered: