public abstract class ByteBufferDenseTensor extends DenseTensor
| Modifier and Type | Field and Description |
|---|---|
protected java.nio.ByteBuffer |
_byteBuffer |
protected int |
_cardinality |
protected int |
_limit |
protected long[] |
_shape |
protected int |
_start |
protected Representable[] |
_types |
| Constructor and Description |
|---|
ByteBufferDenseTensor(java.nio.ByteBuffer byteBuffer,
long[] shape,
Primitive type,
int bytes) |
| Modifier and Type | Method and Description |
|---|---|
int |
cardinality() |
int |
estimatedCardinality() |
java.nio.ByteBuffer |
getByteBuffer() |
java.nio.ByteBuffer |
getByteBuffer(boolean makeCopy) |
long[] |
getShape() |
Representable[] |
getTypes() |
asListclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetArity, isEmpty, iteratorprotected final java.nio.ByteBuffer _byteBuffer
protected final int _start
protected final int _limit
protected final long[] _shape
protected final int _cardinality
protected final Representable[] _types
public ByteBufferDenseTensor(java.nio.ByteBuffer byteBuffer,
long[] shape,
Primitive type,
int bytes)
public java.nio.ByteBuffer getByteBuffer()
public java.nio.ByteBuffer getByteBuffer(boolean makeCopy)
public long[] getShape()
public Representable[] getTypes()
public int estimatedCardinality()
public int cardinality()