@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class SparseReduceSumSparse extends Pointer
tf.reduce_sum()
. In contrast to SparseReduceSum, this Op returns a
SparseTensor.
Reduces sp_input
along the dimensions given in reduction_axes
. Unless
keep_dims
is true, the rank of the tensor is reduced by 1 for each entry in
reduction_axes
. If keep_dims
is true, the reduced dimensions are retained
with length 1.
If reduction_axes
has no entries, all dimensions are reduced, and a tensor
with a single element is returned. Additionally, the axes can be negative,
which are interpreted according to the indexing rules in Python.
Arguments:
* scope: A Scope object
* input_indices: 2-D. N x R
matrix with the indices of non-empty values in a
SparseTensor, possibly not in canonical ordering.
* input_values: 1-D. N
non-empty values corresponding to input_indices
.
* input_shape: 1-D. Shape of the input SparseTensor.
* reduction_axes: 1-D. Length-K
vector containing the reduction axes.
Optional attributes (see Attrs
):
* keep_dims: If true, retain reduced dimensions with length 1.
Returns:
* Output
output_indices
* Output
output_values
* Output
output_shapeModifier and Type | Class and Description |
---|---|
static class |
SparseReduceSumSparse.Attrs
Optional attribute setters for SparseReduceSumSparse
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
SparseReduceSumSparse(Pointer p)
Pointer cast constructor.
|
SparseReduceSumSparse(Scope scope,
Input input_indices,
Input input_values,
Input input_shape,
Input reduction_axes) |
SparseReduceSumSparse(Scope scope,
Input input_indices,
Input input_values,
Input input_shape,
Input reduction_axes,
SparseReduceSumSparse.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
static SparseReduceSumSparse.Attrs |
KeepDims(boolean x) |
Operation |
operation() |
SparseReduceSumSparse |
operation(Operation setter) |
Output |
output_indices() |
SparseReduceSumSparse |
output_indices(Output setter) |
Output |
output_shape() |
SparseReduceSumSparse |
output_shape(Output setter) |
Output |
output_values() |
SparseReduceSumSparse |
output_values(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 SparseReduceSumSparse(Pointer p)
Pointer(Pointer)
.public SparseReduceSumSparse(@Const @ByRef Scope scope, @ByVal Input input_indices, @ByVal Input input_values, @ByVal Input input_shape, @ByVal Input reduction_axes)
@ByVal public static SparseReduceSumSparse.Attrs KeepDims(@Cast(value="bool") boolean x)
public SparseReduceSumSparse operation(Operation setter)
public SparseReduceSumSparse output_indices(Output setter)
public SparseReduceSumSparse output_values(Output setter)
public SparseReduceSumSparse output_shape(Output setter)
Copyright © 2022. All rights reserved.