Class BiasAddGrad<T extends TType>
java.lang.Object
org.tensorflow.op.RawOp
org.tensorflow.op.nn.BiasAddGrad<T>
@Operator(group="nn")
public final class BiasAddGrad<T extends TType>
extends RawOp
implements Operand<T>
The backward operation for "BiasAdd" on the "bias" tensor.
It accumulates all the values from out_backprop into the feature dimension.
For NHWC data format, the feature dimension is the last. For NCHW data format,
the feature dimension is the third-to-last.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBiasAddGrad.Inputs<T extends TType>static classOptional attributes forBiasAddGrad -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of this op, as known by TensorFlow core engine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasOutput()Returns the symbolic handle of the tensor.static <T extends TType>
BiasAddGrad<T> create(Scope scope, Operand<T> outBackprop, BiasAddGrad.Options... options) Factory method to create a class wrapping a new BiasAddGrad operation.static BiasAddGrad.OptionsdataFormat(String dataFormat) Sets the dataFormat option.output()Gets output. 1-D with size the feature dimension ofout_backprop.
-
Field Details
-
OP_NAME
The name of this op, as known by TensorFlow core engine- See Also:
-
-
Constructor Details
-
BiasAddGrad
-
-
Method Details
-
create
@Endpoint(describeByClass=true) public static <T extends TType> BiasAddGrad<T> create(Scope scope, Operand<T> outBackprop, BiasAddGrad.Options... options) Factory method to create a class wrapping a new BiasAddGrad operation.- Type Parameters:
T- data type forBiasAddGradoutput and operands- Parameters:
scope- current scopeoutBackprop- Any number of dimensions.options- carries optional attribute values- Returns:
- a new instance of BiasAddGrad
-
dataFormat
Sets the dataFormat option.- Parameters:
dataFormat- Specify the data format of the input and output data. With the default format "NHWC", the bias tensor will be added to the last dimension of the value tensor. Alternatively, the format could be "NCHW", the data storage order of: [batch, in_channels, in_height, in_width]. The tensor will be added to "in_channels", the third-to-the-last dimension.- Returns:
- this Options instance.
-
output
-
asOutput
Description copied from interface:OperandReturns the symbolic handle of the tensor.Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.
-