Package org.apache.arrow.flatbuf
Class Tensor
java.lang.Object
com.google.flatbuffers.Table
org.apache.arrow.flatbuf.Tensor
public final class Tensor
extends com.google.flatbuffers.Table
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.google.flatbuffers.Table
bb, bb_pos
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription__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) data()
The location and size of the tensor's datastatic 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
static Tensor
getRootAsTensor
(ByteBuffer _bb, Tensor obj) shape
(int j) The dimensions of the tensor, optionally namedint
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).int
com.google.flatbuffers.LongVector
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
Methods 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)
-