Gradient for batch normalization.
tf.raw_ops.FusedBatchNormGradV3(
y_backprop,
x,
scale,
reserve_space_1,
reserve_space_2,
reserve_space_3,
epsilon=0.0001,
data_format='NHWC',
is_training=True,
name=None
)
Note that the size of 4D Tensors are defined by either "NHWC" or "NCHW". The size of 1D Tensors matches the dimension C of the 4D Tensors.
y_backprop
Tensor. Must be one of the following types: half, bfloat16, float32.
A 4D Tensor for the gradient with respect to y.
x
Tensor. Must have the same type as y_backprop.
A 4D Tensor for input data.
scale
Tensor of type float32.
A 1D Tensor for scaling factor, to scale the normalized x.
reserve_space_1
Tensor. Must be one of the following types: float32.
When is_training is True, a 1D Tensor for the computed batch
mean to be reused in gradient computation. When is_training is
False, a 1D Tensor for the population mean to be reused in both
1st and 2nd order gradient computation.
reserve_space_2
Tensor. Must have the same type as reserve_space_1.
When is_training is True, a 1D Tensor for the computed batch
variance (inverted variance in the cuDNN case) to be reused in
gradient computation. When is_training is False, a 1D Tensor
for the population variance to be reused in both 1st and 2nd
order gradient computation.
reserve_space_3
Tensor. Must have the same type as reserve_space_1.
When is_training is True, a 1D Tensor for some intermediate results to be reused
in gradient computation. When is_training is False, a dummy empty Tensor will be
created.
epsilon
float. Defaults to 0.0001.
A small float number added to the variance of x.
data_format
string from: "NHWC", "NCHW", "NDHWC", "NCDHW". Defaults to "NHWC".
The data format for y_backprop, x, x_backprop.
Either "NHWC" (default) or "NCHW".
is_training
bool. Defaults to True.
A bool value to indicate the operation is for training (default)
or inference.
name
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2024-04-26 UTC.