public class DataTypeUtil extends Object
Constructor and Description |
---|
DataTypeUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
getDTypeForName(DataBuffer.Type allocationMode)
Gets the name of the alocation mode
|
static DataBuffer.Type |
getDtypeFromContext()
get the allocation mode from the context
|
static DataBuffer.Type |
getDtypeFromContext(String dType)
Get the allocation mode from the context
|
static void |
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
|
static void |
setDTypeForContext(String 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
|
public static DataBuffer.Type getDtypeFromContext(String dType)
public static String getDTypeForName(DataBuffer.Type allocationMode)
allocationMode
- public static DataBuffer.Type getDtypeFromContext()
public static void setDTypeForContext(DataBuffer.Type allocationModeForContext)
allocationModeForContext
- public static void setDTypeForContext(String allocationModeForContext)
allocationModeForContext
- Copyright © 2016. All Rights Reserved.