| Package | Description |
|---|---|
| org.nd4j.linalg.api.buffer | |
| org.nd4j.linalg.api.buffer.factory | |
| org.nd4j.linalg.api.buffer.util |
| Modifier and Type | Field and Description |
|---|---|
protected DataBuffer.AllocationMode |
BaseDataBuffer.allocationMode |
| Modifier and Type | Method and Description |
|---|---|
DataBuffer.AllocationMode |
BaseDataBuffer.allocationMode() |
DataBuffer.AllocationMode |
DataBuffer.allocationMode()
Allocation mode for buffers
|
static DataBuffer.AllocationMode |
DataBuffer.AllocationMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataBuffer.AllocationMode[] |
DataBuffer.AllocationMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Field and Description |
|---|---|
protected DataBuffer.AllocationMode |
DefaultDataBufferFactory.allocationMode |
| Modifier and Type | Method and Description |
|---|---|
DataBuffer.AllocationMode |
DefaultDataBufferFactory.allocationMode() |
DataBuffer.AllocationMode |
DataBufferFactory.allocationMode()
Allocation mode for the data buffer
|
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultDataBufferFactory.setAllocationMode(DataBuffer.AllocationMode allocationMode) |
void |
DataBufferFactory.setAllocationMode(DataBuffer.AllocationMode allocationMode)
Setter for the allocation mode
|
| Modifier and Type | Method and Description |
|---|---|
static DataBuffer.AllocationMode |
AllocUtil.getAllocationModeFromContext()
get the allocation mode from the context
|
static DataBuffer.AllocationMode |
AllocUtil.getAllocationModeFromContext(String allocMode)
Get the allocation mode from the context
|
| Modifier and Type | Method and Description |
|---|---|
static String |
AllocUtil.getAllocModeName(DataBuffer.AllocationMode allocationMode)
Gets the name of the alocation mode
|
static void |
AllocUtil.setAllocationModeForContext(DataBuffer.AllocationMode 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
|
Copyright © 2018. All rights reserved.