public final class Tensor
extends com.google.flatbuffers.Table
| 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() |
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.Table |
type(com.google.flatbuffers.Table obj)
The type of data contained in a value cell.
|
byte |
typeType() |
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 long strides(int j)
public int stridesLength()
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 © 2020 The Apache Software Foundation. All rights reserved.