@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.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_shape| Modifier and Type | Class and Description |
|---|---|
static class |
tensorflow.SparseReduceSumSparse.Attrs
Optional attribute setters for SparseReduceSumSparse
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
SparseReduceSumSparse(Pointer p)
Pointer cast constructor.
|
SparseReduceSumSparse(tensorflow.Scope scope,
tensorflow.Input input_indices,
tensorflow.Input input_values,
tensorflow.Input input_shape,
tensorflow.Input reduction_axes) |
SparseReduceSumSparse(tensorflow.Scope scope,
tensorflow.Input input_indices,
tensorflow.Input input_values,
tensorflow.Input input_shape,
tensorflow.Input reduction_axes,
tensorflow.SparseReduceSumSparse.Attrs attrs) |
| Modifier and Type | Method and Description |
|---|---|
static tensorflow.SparseReduceSumSparse.Attrs |
KeepDims(boolean x) |
tensorflow.Operation |
operation() |
tensorflow.SparseReduceSumSparse |
operation(tensorflow.Operation operation) |
tensorflow.Output |
output_indices() |
tensorflow.SparseReduceSumSparse |
output_indices(tensorflow.Output output_indices) |
tensorflow.Output |
output_shape() |
tensorflow.SparseReduceSumSparse |
output_shape(tensorflow.Output output_shape) |
tensorflow.Output |
output_values() |
tensorflow.SparseReduceSumSparse |
output_values(tensorflow.Output output_values) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic SparseReduceSumSparse(Pointer p)
Pointer.Pointer(Pointer).public SparseReduceSumSparse(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input_indices, @ByVal tensorflow.Input input_values, @ByVal tensorflow.Input input_shape, @ByVal tensorflow.Input reduction_axes)
public SparseReduceSumSparse(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input_indices, @ByVal tensorflow.Input input_values, @ByVal tensorflow.Input input_shape, @ByVal tensorflow.Input reduction_axes, @Const @ByRef tensorflow.SparseReduceSumSparse.Attrs attrs)
@ByVal public static tensorflow.SparseReduceSumSparse.Attrs KeepDims(@Cast(value="bool") boolean x)
@ByRef public tensorflow.Operation operation()
public tensorflow.SparseReduceSumSparse operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output output_indices()
public tensorflow.SparseReduceSumSparse output_indices(tensorflow.Output output_indices)
@ByRef public tensorflow.Output output_values()
public tensorflow.SparseReduceSumSparse output_values(tensorflow.Output output_values)
@ByRef public tensorflow.Output output_shape()
public tensorflow.SparseReduceSumSparse output_shape(tensorflow.Output output_shape)
Copyright © 2019. All rights reserved.