@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class SerializeManySparse extends Pointer
N
-minibatch SparseTensor
into an [N, 3]
Tensor
object.
The 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 serialized
SparseTensor
objects going into each row of serialized_sparse
will have
rank R-1
.
The minibatch size N
is extracted from sparse_shape[0]
.
Arguments:
* scope: A Scope object
* sparse_indices: 2-D. The indices
of the minibatch SparseTensor
.
* sparse_values: 1-D. The values
of the minibatch SparseTensor
.
* sparse_shape: 1-D. The shape
of the minibatch SparseTensor
.
Optional attributes (see Attrs
):
* out_type: The dtype
to use for serialization; the supported types are string
(default) and variant
.
Returns:
* Output
: The serialized_sparse tensor.Modifier and Type | Class and Description |
---|---|
static class |
SerializeManySparse.Attrs
Optional attribute setters for SerializeManySparse
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
SerializeManySparse(Pointer p)
Pointer cast constructor.
|
SerializeManySparse(Scope scope,
Input sparse_indices,
Input sparse_values,
Input sparse_shape) |
SerializeManySparse(Scope scope,
Input sparse_indices,
Input sparse_values,
Input sparse_shape,
SerializeManySparse.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
Input |
asInput() |
Output |
asOutput() |
Node |
node() |
Operation |
operation() |
SerializeManySparse |
operation(Operation setter) |
static SerializeManySparse.Attrs |
OutType(int x) |
Output |
serialized_sparse() |
SerializeManySparse |
serialized_sparse(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 SerializeManySparse(Pointer p)
Pointer(Pointer)
.public SerializeManySparse(@Const @ByRef Scope scope, @ByVal Input sparse_indices, @ByVal Input sparse_values, @ByVal Input sparse_shape)
public Node node()
@ByVal public static SerializeManySparse.Attrs OutType(@Cast(value="tensorflow::DataType") int x)
public SerializeManySparse operation(Operation setter)
public SerializeManySparse serialized_sparse(Output setter)
Copyright © 2022. All rights reserved.