T
- data type for x_backprop
outputU
- data type for scale_backprop
output@Operator(group="nn") public final class FusedBatchNormGrad<T extends TNumber,U extends TNumber> extends RawOp
Modifier and Type | Class and Description |
---|---|
static class |
FusedBatchNormGrad.Inputs<T extends TNumber,U extends TNumber> |
static class |
FusedBatchNormGrad.Options
Optional attributes for
FusedBatchNormGrad |
Modifier and Type | Field and Description |
---|---|
static String |
OP_NAME
The name of this op, as known by TensorFlow core engine
|
Constructor and Description |
---|
FusedBatchNormGrad(Operation operation) |
Modifier and Type | Method and Description |
---|---|
static <T extends TNumber,U extends TNumber> |
create(Scope scope,
Operand<T> yBackprop,
Operand<T> x,
Operand<TFloat32> scale,
Operand<U> reserveSpace1,
Operand<U> reserveSpace2,
Operand<U> reserveSpace3,
FusedBatchNormGrad.Options... options)
Factory method to create a class wrapping a new FusedBatchNormGradV3 operation.
|
static FusedBatchNormGrad.Options |
dataFormat(String dataFormat)
Sets the dataFormat option.
|
static FusedBatchNormGrad.Options |
epsilon(Float epsilon)
Sets the epsilon option.
|
static FusedBatchNormGrad.Options |
isTraining(Boolean isTraining)
Sets the isTraining option.
|
Output<U> |
offsetBackprop()
Gets offsetBackprop.
|
Output<U> |
reserveSpace4()
Gets reserveSpace4.
|
Output<U> |
reserveSpace5()
Gets reserveSpace5.
|
Output<U> |
scaleBackprop()
Gets scaleBackprop.
|
Output<T> |
xBackprop()
Gets xBackprop.
|
public static final String OP_NAME
public FusedBatchNormGrad(Operation operation)
@Endpoint(describeByClass=true) public static <T extends TNumber,U extends TNumber> FusedBatchNormGrad<T,U> create(Scope scope, Operand<T> yBackprop, Operand<T> x, Operand<TFloat32> scale, Operand<U> reserveSpace1, Operand<U> reserveSpace2, Operand<U> reserveSpace3, FusedBatchNormGrad.Options... options)
T
- data type for FusedBatchNormGradV3
output and operandsU
- data type for FusedBatchNormGradV3
output and operandsscope
- current scopeyBackprop
- A 4D Tensor for the gradient with respect to y.x
- A 4D Tensor for input data.scale
- A 1D Tensor for scaling factor, to scale the normalized x.reserveSpace1
- 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.reserveSpace2
- 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.reserveSpace3
- 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.options
- carries optional attribute valuespublic static FusedBatchNormGrad.Options epsilon(Float epsilon)
epsilon
- A small float number added to the variance of x.public static FusedBatchNormGrad.Options dataFormat(String dataFormat)
dataFormat
- The data format for y_backprop, x, x_backprop.
Either "NHWC" (default) or "NCHW".public static FusedBatchNormGrad.Options isTraining(Boolean isTraining)
isTraining
- A bool value to indicate the operation is for training (default)
or inference.public Output<T> xBackprop()
public Output<U> scaleBackprop()
public Output<U> offsetBackprop()
public Output<U> reserveSpace4()
Copyright © 2015–2022. All rights reserved.