@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class AccumulateNV2 extends Pointer
tf.accumulate_n_v2
performs the same operation as tf.add_n
, but does not
wait for all of its inputs to be ready before beginning to sum. This can
save memory if inputs are ready at different times, since minimum temporary
storage is proportional to the output size rather than the inputs size.
Unlike the original accumulate_n
, accumulate_n_v2
is differentiable.
Returns a Tensor
of same shape and type as the elements of inputs
.
Arguments:
* scope: A Scope object
* inputs: A list of Tensor
objects, each with same shape and type.
* shape: Shape of elements of inputs
.
Returns:
* Output
: The sum tensor.Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
AccumulateNV2(Pointer p)
Pointer cast constructor.
|
AccumulateNV2(Scope scope,
InputList inputs,
PartialTensorShape shape) |
Modifier and Type | Method and Description |
---|---|
Input |
asInput() |
Output |
asOutput() |
Node |
node() |
Operation |
operation() |
AccumulateNV2 |
operation(Operation setter) |
Output |
sum() |
AccumulateNV2 |
sum(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 AccumulateNV2(Pointer p)
Pointer(Pointer)
.public Node node()
public AccumulateNV2 operation(Operation setter)
public AccumulateNV2 sum(Output setter)
Copyright © 2022. All rights reserved.