java.lang.Object
com.google.flatbuffers.Table
org.apache.arrow.flatbuf.Tensor
public final class Tensor
extends com.google.flatbuffers.Table
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.google.flatbuffers.Table
bb, bb_pos -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription__assign(int _i, ByteBuffer _bb) void__init(int _i, ByteBuffer _bb) static voidaddData(com.google.flatbuffers.FlatBufferBuilder builder, int dataOffset) static voidaddShape(com.google.flatbuffers.FlatBufferBuilder builder, int shapeOffset) static voidaddStrides(com.google.flatbuffers.FlatBufferBuilder builder, int stridesOffset) static voidaddType(com.google.flatbuffers.FlatBufferBuilder builder, int typeOffset) static voidaddTypeType(com.google.flatbuffers.FlatBufferBuilder builder, byte typeType) static intcreateShapeVector(com.google.flatbuffers.FlatBufferBuilder builder, int[] data) static intcreateStridesVector(com.google.flatbuffers.FlatBufferBuilder builder, long[] data) data()The location and size of the tensor's datastatic intendTensor(com.google.flatbuffers.FlatBufferBuilder builder) static voidfinishSizePrefixedTensorBuffer(com.google.flatbuffers.FlatBufferBuilder builder, int offset) static voidfinishTensorBuffer(com.google.flatbuffers.FlatBufferBuilder builder, int offset) static Tensorstatic TensorgetRootAsTensor(ByteBuffer _bb, Tensor obj) shape(int j) The dimensions of the tensor, optionally namedintstatic voidstartShapeVector(com.google.flatbuffers.FlatBufferBuilder builder, int numElems) static voidstartStridesVector(com.google.flatbuffers.FlatBufferBuilder builder, int numElems) static voidstartTensor(com.google.flatbuffers.FlatBufferBuilder builder) longstrides(int j) Non-negative byte offsets to advance one value cell along each dimension If omitted, default to row-major order (C-like).intcom.google.flatbuffers.LongVectorcom.google.flatbuffers.LongVectorstridesVector(com.google.flatbuffers.LongVector obj) com.google.flatbuffers.Tabletype(com.google.flatbuffers.Table obj) The type of data contained in a value cell.bytetypeType()static voidMethods inherited from class com.google.flatbuffers.Table
__has_identifier, __indirect, __indirect, __offset, __offset, __reset, __reset, __string, __string, __union, __union, __vector, __vector_as_bytebuffer, __vector_in_bytebuffer, __vector_len, compareStrings, compareStrings, getByteBuffer, keysCompare, sortTables
-
Constructor Details
-
Tensor
public Tensor()
-
-
Method Details
-
ValidateVersion
public static void ValidateVersion() -
getRootAsTensor
-
getRootAsTensor
-
__init
-
__assign
-
typeType
public byte typeType() -
type
public com.google.flatbuffers.Table type(com.google.flatbuffers.Table obj) The type of data contained in a value cell. Currently only fixed-width value types are supported, no strings or nested types -
shape
The dimensions of the tensor, optionally named -
shape
-
shapeLength
public int shapeLength() -
shapeVector
-
shapeVector
-
strides
public 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). -
stridesLength
public int stridesLength() -
stridesVector
public com.google.flatbuffers.LongVector stridesVector() -
stridesVector
public com.google.flatbuffers.LongVector stridesVector(com.google.flatbuffers.LongVector obj) -
stridesAsByteBuffer
-
stridesInByteBuffer
-
data
The location and size of the tensor's data -
data
-
startTensor
public static void startTensor(com.google.flatbuffers.FlatBufferBuilder builder) -
addTypeType
public static void addTypeType(com.google.flatbuffers.FlatBufferBuilder builder, byte typeType) -
addType
public static void addType(com.google.flatbuffers.FlatBufferBuilder builder, int typeOffset) -
addShape
public static void addShape(com.google.flatbuffers.FlatBufferBuilder builder, int shapeOffset) -
createShapeVector
public static int createShapeVector(com.google.flatbuffers.FlatBufferBuilder builder, int[] data) -
startShapeVector
public static void startShapeVector(com.google.flatbuffers.FlatBufferBuilder builder, int numElems) -
addStrides
public static void addStrides(com.google.flatbuffers.FlatBufferBuilder builder, int stridesOffset) -
createStridesVector
public static int createStridesVector(com.google.flatbuffers.FlatBufferBuilder builder, long[] data) -
startStridesVector
public static void startStridesVector(com.google.flatbuffers.FlatBufferBuilder builder, int numElems) -
addData
public static void addData(com.google.flatbuffers.FlatBufferBuilder builder, int dataOffset) -
endTensor
public static int endTensor(com.google.flatbuffers.FlatBufferBuilder builder) -
finishTensorBuffer
public static void finishTensorBuffer(com.google.flatbuffers.FlatBufferBuilder builder, int offset) -
finishSizePrefixedTensorBuffer
public static void finishSizePrefixedTensorBuffer(com.google.flatbuffers.FlatBufferBuilder builder, int offset)
-