|TensorFlow 1 version||View source on GitHub|
Compat aliases for migration
See Migration guide for more details.
tf.nn.bias_add( value, bias, data_format=None, name=None )
This is (mostly) a special case of
bias is restricted to 1-D.
Broadcasting is supported, so
value may have any number of dimensions.
tf.add, the type of
bias is allowed to differ from
value in the
case where both types are quantized.
bias: A 1-D
Tensorwith size matching the channel dimension of
value. Must be the same type as
valueis a quantized type, in which case a different quantized type may be used.
data_format: A string. 'N...C' and 'NC...' are supported. If
None(the default) is specified then 'N..C' is assumed.
name: A name for the operation (optional).
Tensor with the same type as
ValueError if data format is unrecognized, if
value has less than two
data_format is 'N..C'/
value has less
then three dimensions when
bias does not
have exactly one dimension (is a vector), or if the size of
does not match the size of the channel dimension of