@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.SparseReduceSum extends Pointer
tf.reduce_sum(). In particular, this Op also returns a dense Tensor
instead of a sparse one.
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: R-K-D. The reduced Tensor.| Modifier and Type | Class and Description |
|---|---|
static class |
tensorflow.SparseReduceSum.Attrs
Optional attribute setters for SparseReduceSum
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
SparseReduceSum(Pointer p)
Pointer cast constructor.
|
SparseReduceSum(tensorflow.Scope scope,
tensorflow.Input input_indices,
tensorflow.Input input_values,
tensorflow.Input input_shape,
tensorflow.Input reduction_axes) |
SparseReduceSum(tensorflow.Scope scope,
tensorflow.Input input_indices,
tensorflow.Input input_values,
tensorflow.Input input_shape,
tensorflow.Input reduction_axes,
tensorflow.SparseReduceSum.Attrs attrs) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Input |
asInput() |
tensorflow.Output |
asOutput() |
static tensorflow.SparseReduceSum.Attrs |
KeepDims(boolean x) |
tensorflow.Node |
node() |
tensorflow.Operation |
operation() |
tensorflow.SparseReduceSum |
operation(tensorflow.Operation operation) |
tensorflow.Output |
output() |
tensorflow.SparseReduceSum |
output(tensorflow.Output output) |
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 SparseReduceSum(Pointer p)
Pointer.Pointer(Pointer).public SparseReduceSum(@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 SparseReduceSum(@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.SparseReduceSum.Attrs attrs)
@ByVal @Name(value="operator tensorflow::Output") public tensorflow.Output asOutput()
@ByVal @Name(value="operator tensorflow::Input") public tensorflow.Input asInput()
public tensorflow.Node node()
@ByVal public static tensorflow.SparseReduceSum.Attrs KeepDims(@Cast(value="bool") boolean x)
@ByRef public tensorflow.Operation operation()
public tensorflow.SparseReduceSum operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output output()
public tensorflow.SparseReduceSum output(tensorflow.Output output)
Copyright © 2019. All rights reserved.