@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.AddManySparseToTensorsMap extends Pointer
Add an N-minibatch SparseTensor to a SparseTensorsMap, return N handles.
A SparseTensor of rank R is represented by three tensors: sparse_indices,
sparse_values, and sparse_shape, where
sparse_indices.shape[1] == sparse_shape.shape[0] == R
An N-minibatch of SparseTensor objects is represented as a SparseTensor
having a first sparse_indices column taking values between [0, N), where
the minibatch size N == sparse_shape[0].
The input SparseTensor must have rank R greater than 1, and the first
dimension is treated as the minibatch dimension. Elements of the SparseTensor
must be sorted in increasing order of this first dimension. The stored
SparseTensor objects pointed to by each row of the output sparse_handles
will have rank R-1.
The SparseTensor values can then be read out as part of a minibatch by passing
the given keys as vector elements to TakeManySparseFromTensorsMap. To ensure
the correct SparseTensorsMap is accessed, ensure that the same
container and shared_name are passed to that Op. If no shared_name
is provided here, instead use the *name* of the Operation created by calling
AddManySparseToTensorsMap as the shared_name passed to
TakeManySparseFromTensorsMap. Ensure the Operations are colocated.
Arguments:
* scope: A Scope object
* sparse_indices: 2-D. The indices of the minibatch SparseTensor.
sparse_indices[:, 0] must be ordered values in [0, N).
* sparse_values: 1-D. The values of the minibatch SparseTensor.
* sparse_shape: 1-D. The shape of the minibatch SparseTensor.
The minibatch size N == sparse_shape[0].
Optional attributes (see Attrs):
* container: The container name for the SparseTensorsMap created by this op.
* shared_name: The shared name for the SparseTensorsMap created by this op.
If blank, the new Operation's unique name is used.
Returns:
* Output: 1-D. The handles of the SparseTensor now stored in the
SparseTensorsMap. Shape: [N].| Modifier and Type | Class and Description |
|---|---|
static class |
tensorflow.AddManySparseToTensorsMap.Attrs
Optional attribute setters for AddManySparseToTensorsMap
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
AddManySparseToTensorsMap(Pointer p)
Pointer cast constructor.
|
AddManySparseToTensorsMap(tensorflow.Scope scope,
tensorflow.Input sparse_indices,
tensorflow.Input sparse_values,
tensorflow.Input sparse_shape) |
AddManySparseToTensorsMap(tensorflow.Scope scope,
tensorflow.Input sparse_indices,
tensorflow.Input sparse_values,
tensorflow.Input sparse_shape,
tensorflow.AddManySparseToTensorsMap.Attrs attrs) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Input |
asInput() |
tensorflow.Output |
asOutput() |
static tensorflow.AddManySparseToTensorsMap.Attrs |
Container(BytePointer x) |
static tensorflow.AddManySparseToTensorsMap.Attrs |
Container(String x) |
tensorflow.Node |
node() |
tensorflow.Operation |
operation() |
tensorflow.AddManySparseToTensorsMap |
operation(tensorflow.Operation operation) |
static tensorflow.AddManySparseToTensorsMap.Attrs |
SharedName(BytePointer x) |
static tensorflow.AddManySparseToTensorsMap.Attrs |
SharedName(String x) |
tensorflow.Output |
sparse_handles() |
tensorflow.AddManySparseToTensorsMap |
sparse_handles(tensorflow.Output sparse_handles) |
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 AddManySparseToTensorsMap(Pointer p)
Pointer.Pointer(Pointer).public AddManySparseToTensorsMap(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input sparse_indices, @ByVal tensorflow.Input sparse_values, @ByVal tensorflow.Input sparse_shape)
public AddManySparseToTensorsMap(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input sparse_indices, @ByVal tensorflow.Input sparse_values, @ByVal tensorflow.Input sparse_shape, @Const @ByRef tensorflow.AddManySparseToTensorsMap.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.AddManySparseToTensorsMap.Attrs Container(@tensorflow.StringPiece BytePointer x)
@ByVal public static tensorflow.AddManySparseToTensorsMap.Attrs Container(@tensorflow.StringPiece String x)
@ByVal public static tensorflow.AddManySparseToTensorsMap.Attrs SharedName(@tensorflow.StringPiece BytePointer x)
@ByVal public static tensorflow.AddManySparseToTensorsMap.Attrs SharedName(@tensorflow.StringPiece String x)
@ByRef public tensorflow.Operation operation()
public tensorflow.AddManySparseToTensorsMap operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output sparse_handles()
public tensorflow.AddManySparseToTensorsMap sparse_handles(tensorflow.Output sparse_handles)
Copyright © 2019. All rights reserved.