public final class Tensor
extends com.google.flatbuffers.Table
Modifier and Type | Class and Description |
---|---|
static class |
Tensor.Vector |
Constructor and Description |
---|
Tensor() |
Modifier and Type | Method and Description |
---|---|
Tensor |
__assign(int _i,
ByteBuffer _bb) |
void |
__init(int _i,
ByteBuffer _bb) |
static void |
addData(com.google.flatbuffers.FlatBufferBuilder builder,
int dataOffset) |
static void |
addShape(com.google.flatbuffers.FlatBufferBuilder builder,
int shapeOffset) |
static void |
addStrides(com.google.flatbuffers.FlatBufferBuilder builder,
int stridesOffset) |
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) |
static int |
createStridesVector(com.google.flatbuffers.FlatBufferBuilder builder,
long[] data) |
Buffer |
data()
The location and size of the tensor's data
|
Buffer |
data(Buffer obj) |
static int |
endTensor(com.google.flatbuffers.FlatBufferBuilder builder) |
static void |
finishSizePrefixedTensorBuffer(com.google.flatbuffers.FlatBufferBuilder builder,
int offset) |
static void |
finishTensorBuffer(com.google.flatbuffers.FlatBufferBuilder builder,
int offset) |
static Tensor |
getRootAsTensor(ByteBuffer _bb) |
static Tensor |
getRootAsTensor(ByteBuffer _bb,
Tensor obj) |
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) |
static void |
startShapeVector(com.google.flatbuffers.FlatBufferBuilder builder,
int numElems) |
static void |
startStridesVector(com.google.flatbuffers.FlatBufferBuilder builder,
int numElems) |
static void |
startTensor(com.google.flatbuffers.FlatBufferBuilder builder) |
long |
strides(int j)
Non-negative byte offsets to advance one value cell along each dimension
If omitted, default to row-major order (C-like).
|
ByteBuffer |
stridesAsByteBuffer() |
ByteBuffer |
stridesInByteBuffer(ByteBuffer _bb) |
int |
stridesLength() |
com.google.flatbuffers.LongVector |
stridesVector() |
com.google.flatbuffers.LongVector |
stridesVector(com.google.flatbuffers.LongVector obj) |
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 Tensor getRootAsTensor(ByteBuffer _bb)
public static Tensor getRootAsTensor(ByteBuffer _bb, Tensor obj)
public void __init(int _i, ByteBuffer _bb)
public Tensor __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 strides(int j)
public int stridesLength()
public com.google.flatbuffers.LongVector stridesVector()
public com.google.flatbuffers.LongVector stridesVector(com.google.flatbuffers.LongVector obj)
public ByteBuffer stridesAsByteBuffer()
public ByteBuffer stridesInByteBuffer(ByteBuffer _bb)
public Buffer data()
public static void startTensor(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 addStrides(com.google.flatbuffers.FlatBufferBuilder builder, int stridesOffset)
public static int createStridesVector(com.google.flatbuffers.FlatBufferBuilder builder, long[] data)
public static void startStridesVector(com.google.flatbuffers.FlatBufferBuilder builder, int numElems)
public static void addData(com.google.flatbuffers.FlatBufferBuilder builder, int dataOffset)
public static int endTensor(com.google.flatbuffers.FlatBufferBuilder builder)
public static void finishTensorBuffer(com.google.flatbuffers.FlatBufferBuilder builder, int offset)
public static void finishSizePrefixedTensorBuffer(com.google.flatbuffers.FlatBufferBuilder builder, int offset)
Copyright © 2023 The Apache Software Foundation. All rights reserved.