W3cubDocs

/TensorFlow C++

tensorflow::ops::BiasAddGrad

#include <nn_ops.h>

The backward operation for "BiasAdd" on the "bias" tensor.

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 (see Attrs):

  • 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.
Constructors and Destructors
BiasAddGrad(const ::tensorflow::Scope & scope, ::tensorflow::Input out_backprop)
BiasAddGrad(const ::tensorflow::Scope & scope, ::tensorflow::Input out_backprop, const BiasAddGrad::Attrs & attrs)
Public attributes
output
Public functions
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Public static functions
DataFormat(StringPiece x)
Structs
tensorflow::ops::BiasAddGrad::Attrs

Optional attribute setters for BiasAddGrad.

Public attributes

output

::tensorflow::Output output

Public functions

BiasAddGrad

 BiasAddGrad(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input out_backprop
)

BiasAddGrad

 BiasAddGrad(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input out_backprop,
  const BiasAddGrad::Attrs & attrs
)

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

operator::tensorflow::Input() const 

operator::tensorflow::Output

operator::tensorflow::Output() const 

Public static functions

DataFormat

Attrs DataFormat(
  StringPiece 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/bias-add-grad.html