BatchNormTrainingBackward#
BatchNormTrainingBackward operation calculated the gradients of input tensors.
Operation Attributes#
|
Description |
Value Type |
|
|
---|---|---|---|---|
A number to be added to the variance to avoid division by zero |
f32 |
A positive f32 value |
Required |
|
Controls
how to
interpret
the shape
of |
string |
|
Optional |
Execution Arguments#
The inputs and outputs must be provided according to the below index order when constructing an operation.
Inputs#
Index |
Argument Name |
Required or Optional |
---|---|---|
0 |
|
Required |
1 |
|
Required |
2 |
|
Required |
3 |
|
Required |
4 |
|
Optional |
Outputs#
Index |
Argument Name |
Required or Optional |
---|---|---|
0 |
|
Required |
1 |
|
Optional |
2 |
|
Optional |
@note diff_gamma
and diff_beta
should be either both provided or
neither provided. If neither provided, the input gamma
will be
ignored.
Supported Data Types#
BatchNormTrainingBackward operation supports the following data type combinations.
Src / Diff_dst / Diff_src |
Mean / Variance / Gamma / Diff_gamma / Diff_beta |
---|---|
f32 |
f32 |
bf16 |
f32, bf16 |
f16 |
f32 |