Link Search Menu Expand Document

BiasAddGrad


tensorflow C++ API

tensorflow::ops::BiasAddGrad

Addsbiastovalue.


Summary

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.

Arguments:

  • scope: A Scope object
  • out_backprop: Any number of dimensions.

Optional attributes (seeAttrs):

  • data_format: 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:

  • Output: 1-D with size the feature dimension of out_backprop.

BiasAddGrad block

Source link : https://github.com/EXPNUNI/enuSpaceTensorflow/blob/master/enuSpaceTensorflow/tf_nn.cpp

Argument:

  • Scope scope : A Scope object (A scope is generated automatically each page. A scope is not connected.)
  • Input value: connect Input node.
  • Input out_backprop: connect Input node.
  • BiasAddGrad::Attrs attrs : Input attrs in value. ex) data_format_ = NHWC;

Return:

  • Output output : Output object of BiasAddGrad class object.

Result:

  • std::vector(Tensor) result_output : Returned object of executed result by calling session.

Using Method