BatchNormInference¶
General¶
The formula is the same as Batch Normalization primitive like below.
where
\(\gamma(c), \beta(c)\) are required scale and shift for a channel,
\(\mu(c), \sigma^2(c)\) are mean and variance for a channel, and
\(\varepsilon\) is a constant to improve numerical stability.
Operation attributes¶
Attribute Name |
Description |
Value Type |
Supported Values |
Required or Optional |
---|---|---|---|---|
A number to be added to the variance to avoid division by zero. |
f32 |
A positive float value |
Required |
|
Controls how to interpret the shape of |
string |
|
Optional |
Execution arguments¶
The inputs and outputs must be provided according to below index order when constructing an operation.
Inputs¶
Index |
Argument Name |
Required or Optional |
---|---|---|
0 |
|
Required |
1 |
|
Required |
2 |
|
Required |
3 |
|
Required |
4 |
|
Required |
Outputs¶
Index |
Argument Name |
Required or Optional |
---|---|---|
0 |
|
Required |
Supported data types¶
BatchNormInference operation supports the following data type combinations.
Src / Dst |
Gamma / Beta / Mean / Variance |
---|---|
f32 |
f32 |
bf16 |
f32, bf16 |
f16 |
f32 |