@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class AddSparseToTensorsMap extends Pointer
SparseTensor
to a SparseTensorsMap
return its handle.
A SparseTensor
is represented by three tensors: sparse_indices
,
sparse_values
, and sparse_shape
.
This operator takes the given SparseTensor
and adds it to a container
object (a SparseTensorsMap
). A unique key within this container is generated
in the form of an int64
, and this is the value that is returned.
The SparseTensor
can then be read out as part of a minibatch by passing
the key as a vector element 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
AddSparseToTensorsMap
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 SparseTensor
.
* sparse_values: 1-D. The values
of the SparseTensor
.
* sparse_shape: 1-D. The shape
of the SparseTensor
.
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
: 0-D. The handle of the SparseTensor
now stored in the
SparseTensorsMap
.Modifier and Type | Class and Description |
---|---|
static class |
AddSparseToTensorsMap.Attrs
Optional attribute setters for AddSparseToTensorsMap
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
AddSparseToTensorsMap(Pointer p)
Pointer cast constructor.
|
AddSparseToTensorsMap(Scope scope,
Input sparse_indices,
Input sparse_values,
Input sparse_shape) |
AddSparseToTensorsMap(Scope scope,
Input sparse_indices,
Input sparse_values,
Input sparse_shape,
AddSparseToTensorsMap.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
Input |
asInput() |
Output |
asOutput() |
static AddSparseToTensorsMap.Attrs |
Container(BytePointer x) |
static AddSparseToTensorsMap.Attrs |
Container(String x) |
Node |
node() |
Operation |
operation() |
AddSparseToTensorsMap |
operation(Operation setter) |
static AddSparseToTensorsMap.Attrs |
SharedName(BytePointer x) |
static AddSparseToTensorsMap.Attrs |
SharedName(String x) |
Output |
sparse_handle() |
AddSparseToTensorsMap |
sparse_handle(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 AddSparseToTensorsMap(Pointer p)
Pointer(Pointer)
.public AddSparseToTensorsMap(@Const @ByRef Scope scope, @ByVal Input sparse_indices, @ByVal Input sparse_values, @ByVal Input sparse_shape)
public Node node()
@ByVal public static AddSparseToTensorsMap.Attrs Container(@tensorflow.StringPiece BytePointer x)
@ByVal public static AddSparseToTensorsMap.Attrs Container(@tensorflow.StringPiece String x)
@ByVal public static AddSparseToTensorsMap.Attrs SharedName(@tensorflow.StringPiece BytePointer x)
@ByVal public static AddSparseToTensorsMap.Attrs SharedName(@tensorflow.StringPiece String x)
public AddSparseToTensorsMap operation(Operation setter)
public AddSparseToTensorsMap sparse_handle(Output setter)
Copyright © 2022. All rights reserved.