| 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 DataBuffer.Type |
BaseDataBuffer.type |
| Modifier and Type | Method and Description |
|---|---|
DataBuffer.Type |
BaseDataBuffer.dataType()
The data type of the buffer
|
DataBuffer.Type |
DataBuffer.dataType()
The data type of the buffer
|
static DataBuffer.Type |
DataBuffer.Type.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataBuffer.Type[] |
DataBuffer.Type.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BaseDataBuffer.pointerIndexerByGlobalType(DataBuffer.Type currentType) |
void |
BaseDataBuffer.putByGlobalType(long i,
Number element,
DataBuffer.Type globalType) |
protected void |
BaseDataBuffer.readContent(DataInputStream s,
DataBuffer.Type currentType,
DataBuffer.Type globalType) |
| Modifier and Type | Method and Description |
|---|---|
DataBuffer |
DataBufferFactory.create(org.bytedeco.javacpp.Pointer pointer,
DataBuffer.Type type,
long length,
org.bytedeco.javacpp.indexer.Indexer indexer)
Create a data buffer based on the
given pointer, data buffer type,
and length of the buffer
|
DataBuffer |
DefaultDataBufferFactory.create(org.bytedeco.javacpp.Pointer pointer,
DataBuffer.Type type,
long length,
org.bytedeco.javacpp.indexer.Indexer indexer)
Create a data buffer based on the
given pointer, data buffer type,
and length of the buffer
|
| Modifier and Type | Method and Description |
|---|---|
static DataBuffer.Type |
DataTypeUtil.getDtypeFromContext()
get the allocation mode from the context
|
static DataBuffer.Type |
DataTypeUtil.getDtypeFromContext(String dType)
Get the allocation mode from the context
|
| Modifier and Type | Method and Description |
|---|---|
static String |
DataTypeUtil.getDTypeForName(DataBuffer.Type allocationMode)
Gets the name of the alocation mode
|
static int |
DataTypeUtil.lengthForDtype(DataBuffer.Type type)
Returns the length for the given data type
|
static void |
DataTypeUtil.setDTypeForContext(DataBuffer.Type 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,
DataBuffer.Type dataType,
boolean initialize)
This method does allocation from a given Workspace
|
PagedPointer |
MemoryWorkspace.alloc(long requiredMemory,
MemoryKind kind,
DataBuffer.Type dataType,
boolean initialize)
This method does allocation from a given Workspace
|
Copyright © 2017. All rights reserved.