public final class SparseTensor
extends com.google.flatbuffers.Table
Modifier and Type | Class and Description |
---|---|
static class |
SparseTensor.Vector |
Constructor and Description |
---|
SparseTensor() |
Modifier and Type | Method and Description |
---|---|
SparseTensor |
__assign(int _i,
ByteBuffer _bb) |
void |
__init(int _i,
ByteBuffer _bb) |
static void |
addData(com.google.flatbuffers.FlatBufferBuilder builder,
int dataOffset) |
static void |
addNonZeroLength(com.google.flatbuffers.FlatBufferBuilder builder,
long nonZeroLength) |
static void |
addShape(com.google.flatbuffers.FlatBufferBuilder builder,
int shapeOffset) |
static void |
addSparseIndex(com.google.flatbuffers.FlatBufferBuilder builder,
int sparseIndexOffset) |
static void |
addSparseIndexType(com.google.flatbuffers.FlatBufferBuilder builder,
byte sparseIndexType) |
static void |
addType(com.google.flatbuffers.FlatBufferBuilder builder,
int typeOffset) |
static void |
addTypeType(com.google.flatbuffers.FlatBufferBuilder builder,
byte typeType) |
static int |
createShapeVector(com.google.flatbuffers.FlatBufferBuilder builder,
int[] data) |
Buffer |
data()
The location and size of the tensor's data
|
Buffer |
data(Buffer obj) |
static int |
endSparseTensor(com.google.flatbuffers.FlatBufferBuilder builder) |
static void |
finishSizePrefixedSparseTensorBuffer(com.google.flatbuffers.FlatBufferBuilder builder,
int offset) |
static void |
finishSparseTensorBuffer(com.google.flatbuffers.FlatBufferBuilder builder,
int offset) |
static SparseTensor |
getRootAsSparseTensor(ByteBuffer _bb) |
static SparseTensor |
getRootAsSparseTensor(ByteBuffer _bb,
SparseTensor obj) |
long |
nonZeroLength()
The number of non-zero values in a sparse tensor.
|
TensorDim |
shape(int j)
The dimensions of the tensor, optionally named.
|
TensorDim |
shape(TensorDim obj,
int j) |
int |
shapeLength() |
TensorDim.Vector |
shapeVector() |
TensorDim.Vector |
shapeVector(TensorDim.Vector obj) |
com.google.flatbuffers.Table |
sparseIndex(com.google.flatbuffers.Table obj)
Sparse tensor index
|
byte |
sparseIndexType() |
static void |
startShapeVector(com.google.flatbuffers.FlatBufferBuilder builder,
int numElems) |
static void |
startSparseTensor(com.google.flatbuffers.FlatBufferBuilder builder) |
com.google.flatbuffers.Table |
type(com.google.flatbuffers.Table obj)
The type of data contained in a value cell.
|
byte |
typeType() |
static void |
ValidateVersion() |
__has_identifier, __indirect, __indirect, __offset, __offset, __reset, __reset, __string, __string, __union, __union, __vector_as_bytebuffer, __vector_in_bytebuffer, __vector_len, __vector, compareStrings, compareStrings, getByteBuffer, keysCompare, sortTables
public static void ValidateVersion()
public static SparseTensor getRootAsSparseTensor(ByteBuffer _bb)
public static SparseTensor getRootAsSparseTensor(ByteBuffer _bb, SparseTensor obj)
public void __init(int _i, ByteBuffer _bb)
public SparseTensor __assign(int _i, ByteBuffer _bb)
public byte typeType()
public com.google.flatbuffers.Table type(com.google.flatbuffers.Table obj)
public TensorDim shape(int j)
public int shapeLength()
public TensorDim.Vector shapeVector()
public TensorDim.Vector shapeVector(TensorDim.Vector obj)
public long nonZeroLength()
public byte sparseIndexType()
public com.google.flatbuffers.Table sparseIndex(com.google.flatbuffers.Table obj)
public Buffer data()
public static void startSparseTensor(com.google.flatbuffers.FlatBufferBuilder builder)
public static void addTypeType(com.google.flatbuffers.FlatBufferBuilder builder, byte typeType)
public static void addType(com.google.flatbuffers.FlatBufferBuilder builder, int typeOffset)
public static void addShape(com.google.flatbuffers.FlatBufferBuilder builder, int shapeOffset)
public static int createShapeVector(com.google.flatbuffers.FlatBufferBuilder builder, int[] data)
public static void startShapeVector(com.google.flatbuffers.FlatBufferBuilder builder, int numElems)
public static void addNonZeroLength(com.google.flatbuffers.FlatBufferBuilder builder, long nonZeroLength)
public static void addSparseIndexType(com.google.flatbuffers.FlatBufferBuilder builder, byte sparseIndexType)
public static void addSparseIndex(com.google.flatbuffers.FlatBufferBuilder builder, int sparseIndexOffset)
public static void addData(com.google.flatbuffers.FlatBufferBuilder builder, int dataOffset)
public static int endSparseTensor(com.google.flatbuffers.FlatBufferBuilder builder)
public static void finishSparseTensorBuffer(com.google.flatbuffers.FlatBufferBuilder builder, int offset)
public static void finishSizePrefixedSparseTensorBuffer(com.google.flatbuffers.FlatBufferBuilder builder, int offset)
Copyright © 2023 The Apache Software Foundation. All rights reserved.