| Package | Description |
|---|---|
| org.nd4j.linalg.api.buffer | |
| org.nd4j.linalg.api.buffer.util |
| 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 |
|---|---|
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 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
|
Copyright © 2016. All Rights Reserved.