@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class BiasAdd extends Pointer
bias
to value
.
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.
Arguments:
* 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
.Modifier and Type | Class and Description |
---|---|
static class |
BiasAdd.Attrs
Optional attribute setters for BiasAdd
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
BiasAdd(Pointer p)
Pointer cast constructor.
|
BiasAdd(Scope scope,
Input value,
Input bias) |
BiasAdd(Scope scope,
Input value,
Input bias,
BiasAdd.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
Input |
asInput() |
Output |
asOutput() |
static BiasAdd.Attrs |
DataFormat(BytePointer x) |
static BiasAdd.Attrs |
DataFormat(String x) |
Node |
node() |
Operation |
operation() |
BiasAdd |
operation(Operation setter) |
Output |
output() |
BiasAdd |
output(Output setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public BiasAdd(Pointer p)
Pointer(Pointer)
.public Node node()
@ByVal public static BiasAdd.Attrs DataFormat(@tensorflow.StringPiece BytePointer x)
@ByVal public static BiasAdd.Attrs DataFormat(@tensorflow.StringPiece String x)
Copyright © 2022. All rights reserved.