#include <nn_ops.h>
Gradient for batch normalization.
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.
Arguments:
Optional attributes (see Attrs
):
Returns:
Output
x_backprop: A 4D Tensor for the gradient with respect to x.Output
scale_backprop: A 1D Tensor for the gradient with respect to scale.Output
offset_backprop: A 1D Tensor for the gradient with respect to offset.Output
reserve_space_3: Unused placeholder to match the mean input in FusedBatchNorm.Output
reserve_space_4: Unused placeholder to match the variance input in FusedBatchNorm. Constructors and Destructors | |
---|---|
FusedBatchNormGradV2(const ::tensorflow::Scope & scope, ::tensorflow::Input y_backprop, ::tensorflow::Input x, ::tensorflow::Input scale, ::tensorflow::Input reserve_space_1, ::tensorflow::Input reserve_space_2) | |
FusedBatchNormGradV2(const ::tensorflow::Scope & scope, ::tensorflow::Input y_backprop, ::tensorflow::Input x, ::tensorflow::Input scale, ::tensorflow::Input reserve_space_1, ::tensorflow::Input reserve_space_2, const FusedBatchNormGradV2::Attrs & attrs) |
Public attributes | |
---|---|
offset_backprop | |
reserve_space_3 | |
reserve_space_4 | |
scale_backprop | |
x_backprop |
Public static functions | |
---|---|
DataFormat(StringPiece x) | |
Epsilon(float x) | |
IsTraining(bool x) |
Structs | |
---|---|
tensorflow::ops::FusedBatchNormGradV2::Attrs | Optional attribute setters for FusedBatchNormGradV2. |
::tensorflow::Output offset_backprop
::tensorflow::Output reserve_space_3
::tensorflow::Output reserve_space_4
::tensorflow::Output scale_backprop
::tensorflow::Output x_backprop
FusedBatchNormGradV2( const ::tensorflow::Scope & scope, ::tensorflow::Input y_backprop, ::tensorflow::Input x, ::tensorflow::Input scale, ::tensorflow::Input reserve_space_1, ::tensorflow::Input reserve_space_2 )
FusedBatchNormGradV2( const ::tensorflow::Scope & scope, ::tensorflow::Input y_backprop, ::tensorflow::Input x, ::tensorflow::Input scale, ::tensorflow::Input reserve_space_1, ::tensorflow::Input reserve_space_2, const FusedBatchNormGradV2::Attrs & attrs )
Attrs DataFormat( StringPiece x )
Attrs Epsilon( float x )
Attrs IsTraining( bool x )
© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/fused-batch-norm-grad-v2.html