java.lang.Object
com.google.flatbuffers.Table
org.apache.arrow.flatbuf.Tensor
public final class Tensor
extends com.google.flatbuffers.Table
- 
Nested Class SummaryNested Classes
- 
Field SummaryFields inherited from class com.google.flatbuffers.Tablebb, bb_pos
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
Tensorpublic Tensor()
 
- 
- 
Method Details- 
ValidateVersionpublic static void ValidateVersion()
- 
getRootAsTensor
- 
getRootAsTensor
- 
__init
- 
__assign
- 
typeTypepublic byte typeType()
- 
typepublic 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
- 
shapeThe dimensions of the tensor, optionally named
- 
shape
- 
shapeLengthpublic int shapeLength()
- 
shapeVector
- 
shapeVector
- 
stridespublic 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).
- 
stridesLengthpublic int stridesLength()
- 
stridesVectorpublic com.google.flatbuffers.LongVector stridesVector()
- 
stridesVectorpublic com.google.flatbuffers.LongVector stridesVector(com.google.flatbuffers.LongVector obj) 
- 
stridesAsByteBuffer
- 
stridesInByteBuffer
- 
dataThe location and size of the tensor's data
- 
data
- 
startTensorpublic static void startTensor(com.google.flatbuffers.FlatBufferBuilder builder) 
- 
addTypeTypepublic static void addTypeType(com.google.flatbuffers.FlatBufferBuilder builder, byte typeType) 
- 
addTypepublic static void addType(com.google.flatbuffers.FlatBufferBuilder builder, int typeOffset) 
- 
addShapepublic static void addShape(com.google.flatbuffers.FlatBufferBuilder builder, int shapeOffset) 
- 
createShapeVectorpublic static int createShapeVector(com.google.flatbuffers.FlatBufferBuilder builder, int[] data) 
- 
startShapeVectorpublic static void startShapeVector(com.google.flatbuffers.FlatBufferBuilder builder, int numElems) 
- 
addStridespublic static void addStrides(com.google.flatbuffers.FlatBufferBuilder builder, int stridesOffset) 
- 
createStridesVectorpublic static int createStridesVector(com.google.flatbuffers.FlatBufferBuilder builder, long[] data) 
- 
startStridesVectorpublic static void startStridesVector(com.google.flatbuffers.FlatBufferBuilder builder, int numElems) 
- 
addDatapublic static void addData(com.google.flatbuffers.FlatBufferBuilder builder, int dataOffset) 
- 
endTensorpublic static int endTensor(com.google.flatbuffers.FlatBufferBuilder builder) 
- 
finishTensorBufferpublic static void finishTensorBuffer(com.google.flatbuffers.FlatBufferBuilder builder, int offset) 
- 
finishSizePrefixedTensorBufferpublic static void finishSizePrefixedTensorBuffer(com.google.flatbuffers.FlatBufferBuilder builder, int offset) 
 
-