@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.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 |
tensorflow.AddSparseToTensorsMap.Attrs
Optional attribute setters for AddSparseToTensorsMap
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
AddSparseToTensorsMap(Pointer p)
Pointer cast constructor.
|
AddSparseToTensorsMap(tensorflow.Scope scope,
tensorflow.Input sparse_indices,
tensorflow.Input sparse_values,
tensorflow.Input sparse_shape) |
AddSparseToTensorsMap(tensorflow.Scope scope,
tensorflow.Input sparse_indices,
tensorflow.Input sparse_values,
tensorflow.Input sparse_shape,
tensorflow.AddSparseToTensorsMap.Attrs attrs) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Input |
asInput() |
tensorflow.Output |
asOutput() |
static tensorflow.AddSparseToTensorsMap.Attrs |
Container(BytePointer x) |
static tensorflow.AddSparseToTensorsMap.Attrs |
Container(String x) |
tensorflow.Node |
node() |
tensorflow.Operation |
operation() |
tensorflow.AddSparseToTensorsMap |
operation(tensorflow.Operation operation) |
static tensorflow.AddSparseToTensorsMap.Attrs |
SharedName(BytePointer x) |
static tensorflow.AddSparseToTensorsMap.Attrs |
SharedName(String x) |
tensorflow.Output |
sparse_handle() |
tensorflow.AddSparseToTensorsMap |
sparse_handle(tensorflow.Output sparse_handle) |
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 AddSparseToTensorsMap(Pointer p)
Pointer.Pointer(Pointer).public AddSparseToTensorsMap(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input sparse_indices, @ByVal tensorflow.Input sparse_values, @ByVal tensorflow.Input sparse_shape)
public AddSparseToTensorsMap(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input sparse_indices, @ByVal tensorflow.Input sparse_values, @ByVal tensorflow.Input sparse_shape, @Const @ByRef tensorflow.AddSparseToTensorsMap.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.AddSparseToTensorsMap.Attrs Container(@tensorflow.StringPiece BytePointer x)
@ByVal public static tensorflow.AddSparseToTensorsMap.Attrs Container(@tensorflow.StringPiece String x)
@ByVal public static tensorflow.AddSparseToTensorsMap.Attrs SharedName(@tensorflow.StringPiece BytePointer x)
@ByVal public static tensorflow.AddSparseToTensorsMap.Attrs SharedName(@tensorflow.StringPiece String x)
@ByRef public tensorflow.Operation operation()
public tensorflow.AddSparseToTensorsMap operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output sparse_handle()
public tensorflow.AddSparseToTensorsMap sparse_handle(tensorflow.Output sparse_handle)
Copyright © 2019. All rights reserved.