@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class Sum extends Pointer
input
along the dimensions given in axis
. Unless
keep_dims
is true, the rank of the tensor is reduced by 1 for each entry in
axis
. If keep_dims
is true, the reduced dimensions are
retained with length 1.
Arguments:
* scope: A Scope object
* input: The tensor to reduce.
* axis: The dimensions to reduce. Must be in the range
[-rank(input), rank(input))
.
Optional attributes (see Attrs
):
* keep_dims: If true, retain reduced dimensions with length 1.
Returns:
* Output
: The reduced tensor.
Aliases:
* ReduceSumModifier and Type | Class and Description |
---|---|
static class |
Sum.Attrs
Optional attribute setters for Sum
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Sum(Pointer p)
Pointer cast constructor.
|
Sum(Scope scope,
Input input,
Input axis) |
Sum(Scope scope,
Input input,
Input axis,
Sum.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
Input |
asInput() |
Output |
asOutput() |
static Sum.Attrs |
KeepDims(boolean x) |
Node |
node() |
Operation |
operation() |
Sum |
operation(Operation setter) |
Output |
output() |
Sum |
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 Sum(Pointer p)
Pointer(Pointer)
.public Node node()
Copyright © 2022. All rights reserved.