#include <nn_ops.h>
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
y: A 4D Tensor for output data.Output
batch_mean: A 1D Tensor for the computed batch mean, to be used by TensorFlow to compute the running mean.Output
batch_variance: A 1D Tensor for the computed batch variance, to be used by TensorFlow to compute the running variance.Output
reserve_space_1: A 1D Tensor for the computed batch mean, to be reused in the gradient computation.Output
reserve_space_2: A 1D Tensor for the computed batch variance (inverted variance in the cuDNN case), to be used in the gradient computation. Constructors and Destructors | |
---|---|
FusedBatchNorm(const ::tensorflow::Scope & scope, ::tensorflow::Input x, ::tensorflow::Input scale, ::tensorflow::Input offset, ::tensorflow::Input mean, ::tensorflow::Input variance) | |
FusedBatchNorm(const ::tensorflow::Scope & scope, ::tensorflow::Input x, ::tensorflow::Input scale, ::tensorflow::Input offset, ::tensorflow::Input mean, ::tensorflow::Input variance, const FusedBatchNorm::Attrs & attrs) |
Public attributes | |
---|---|
batch_mean | |
batch_variance | |
reserve_space_1 | |
reserve_space_2 | |
y |
Public static functions | |
---|---|
DataFormat(StringPiece x) | |
Epsilon(float x) | |
IsTraining(bool x) |
Structs | |
---|---|
tensorflow::ops::FusedBatchNorm::Attrs | Optional attribute setters for FusedBatchNorm. |
::tensorflow::Output batch_mean
::tensorflow::Output batch_variance
::tensorflow::Output reserve_space_1
::tensorflow::Output reserve_space_2
::tensorflow::Output y
FusedBatchNorm( const ::tensorflow::Scope & scope, ::tensorflow::Input x, ::tensorflow::Input scale, ::tensorflow::Input offset, ::tensorflow::Input mean, ::tensorflow::Input variance )
FusedBatchNorm( const ::tensorflow::Scope & scope, ::tensorflow::Input x, ::tensorflow::Input scale, ::tensorflow::Input offset, ::tensorflow::Input mean, ::tensorflow::Input variance, const FusedBatchNorm::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.html