| Package | Description |
|---|---|
| org.nd4j.linalg.api.buffer | |
| org.nd4j.linalg.api.buffer.factory | |
| org.nd4j.linalg.api.buffer.util | |
| org.nd4j.linalg.api.memory |
| Modifier and Type | Field and Description |
|---|---|
protected DataType |
BaseDataBuffer.type |
| Modifier and Type | Method and Description |
|---|---|
DataType |
DataBuffer.dataType()
The data opType of the buffer
|
DataType |
BaseDataBuffer.dataType()
The data opType of the buffer
|
static DataType |
DataType.fromInt(int type) |
static DataType |
DataType.fromNumpy(java.lang.String numpyDtypeName) |
static DataType |
DataType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DataType[] |
DataType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static org.nd4j.linalg.primitives.Triple<DataBuffer.AllocationMode,java.lang.Long,DataType> |
BaseDataBuffer.readHeader(java.io.InputStream is) |
| Modifier and Type | Method and Description |
|---|---|
void |
BaseDataBuffer.pointerIndexerByCurrentType(DataType currentType) |
void |
BaseDataBuffer.putByDestinationType(long i,
java.lang.Number element,
DataType globalType) |
void |
DataBuffer.read(java.io.DataInputStream s,
DataBuffer.AllocationMode allocationMode,
long length,
DataType dataType) |
void |
BaseDataBuffer.read(java.io.DataInputStream s,
DataBuffer.AllocationMode allocMode,
long len,
DataType dtype) |
void |
DataBuffer.read(java.io.InputStream is,
DataBuffer.AllocationMode allocationMode,
long length,
DataType dataType)
Write this buffer to the input stream.
|
void |
BaseDataBuffer.read(java.io.InputStream is,
DataBuffer.AllocationMode allocationMode,
long length,
DataType dataType) |
protected void |
BaseDataBuffer.readContent(java.io.DataInputStream s,
DataType sourceType,
DataType thisType) |
| Modifier and Type | Method and Description |
|---|---|
DataBuffer |
DefaultDataBufferFactory.create(DataType dataType,
long length,
boolean initialize) |
DataBuffer |
DataBufferFactory.create(DataType dataType,
long length,
boolean initialize) |
DataBuffer |
DefaultDataBufferFactory.create(DataType dataType,
long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.create(DataType dataType,
long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
DefaultDataBufferFactory.create(org.bytedeco.javacpp.Pointer pointer,
DataType type,
long length,
org.bytedeco.javacpp.indexer.Indexer indexer)
Create a data buffer based on the
given pointer, data buffer opType,
and length of the buffer
|
DataBuffer |
DataBufferFactory.create(org.bytedeco.javacpp.Pointer pointer,
DataType type,
long length,
org.bytedeco.javacpp.indexer.Indexer indexer)
Create a data buffer based on the
given pointer, data buffer opType,
and length of the buffer
|
| Modifier and Type | Method and Description |
|---|---|
static DataType |
DataTypeUtil.getDtypeFromContext()
get the allocation mode from the context
|
static DataType |
DataTypeUtil.getDtypeFromContext(java.lang.String dType)
Get the allocation mode from the context
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
DataTypeUtil.getDTypeForName(DataType allocationMode)
Gets the name of the alocation mode
|
static int |
DataTypeUtil.lengthForDtype(DataType type)
Returns the length for the given data opType
|
static void |
DataTypeUtil.setDTypeForContext(DataType allocationModeForContext)
Set the allocation mode for the nd4j context
The value must be one of: heap, java cpp, or direct
or an @link{IllegalArgumentException} is thrown
|
| Modifier and Type | Method and Description |
|---|---|
PagedPointer |
MemoryWorkspace.alloc(long requiredMemory,
DataType dataType,
boolean initialize)
This method does allocation from a given Workspace
|
PagedPointer |
MemoryWorkspace.alloc(long requiredMemory,
MemoryKind kind,
DataType dataType,
boolean initialize)
This method does allocation from a given Workspace
|
Copyright © 2019. All rights reserved.