-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
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
Default axis being 1 of batchNormalization operation is invalid for 1D input tensor #307
Comments
Yeah, a default axis = 1 value would be invalid for a 1D input tensor. |
I don't understand how a |
1D tensors are valid in ONNX BatchNormalization-15. "The op also accepts single dimension input of size N in which case C is assumed to be 1". In 1D, elements are normalized across batches (no spatial dimensions), applying |
1. Leave the fix of webmachinelearning#307 to a separate PR 2. Refine MLTransposeOptions.permutation and MLSliceOptions.axes with examples
1. Leave the fix of #307 to a separate PR 2. Refine MLTransposeOptions.permutation and MLSliceOptions.axes with examples
Enumerating options:
Any preferences? |
Option 2 sounds like the best way to me. |
The input of
batchNormalization
operation would be ND tensor, when it's 1D tensor, theaxis
as a long scalar would be 0 or -1, it couldn't be 1, right?And current three operations use
axis
which are of the samelong
type, but explanations foraxis
value are not enough clear, and couldaxis
ofconcat
be negative value?axis
is an option of the optional options parameteraxis
is the second parameteraxis
is an option of the optional options parameter@huningxin @wchao1115 PTAL, thanks.
The text was updated successfully, but these errors were encountered: