public final class Tensor
extends com.google.flatbuffers.Table
| Constructor and Description |
|---|
Tensor() |
| Modifier and Type | Method and Description |
|---|---|
Tensor |
__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 |
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
|
ByteBuffer |
stridesAsByteBuffer() |
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 Tensor __init(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 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)
Copyright © 2018 The Apache Software Foundation. All rights reserved.