tensorflow::ops::BiasAdd

#include <nn_ops.h>

Adds bias to value.

Summary

This is a special case of tf.add where bias is restricted to be 1-D. Broadcasting is supported, so value may have any number of dimensions.

Args:

  • scope: A Scope object
  • value: Any number of dimensions.
  • bias: 1-D with size the last dimension of value.

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: Broadcasted sum of value and bias.

Constructors and Destructors

BiasAdd(const ::tensorflow::Scope & scope, ::tensorflow::Input value, ::tensorflow::Input bias)
BiasAdd(const ::tensorflow::Scope & scope, ::tensorflow::Input value, ::tensorflow::Input bias, const BiasAdd::Attrs & attrs)

Public attributes

operation
output

Public functions

node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const

Public static functions

DataFormat(StringPiece x)

Structs

tensorflow::ops::BiasAdd::Attrs

Optional attribute setters for BiasAdd.

Public attributes

operation

Operation operation

output

::tensorflow::Output output

Public functions

BiasAdd

 BiasAdd(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input value,
  ::tensorflow::Input bias
)

BiasAdd

 BiasAdd(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input value,
  ::tensorflow::Input bias,
  const BiasAdd::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
)