public class DataTypeUtil extends Object
| Constructor and Description |
|---|
DataTypeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getDTypeForName(DataType allocationMode)
Gets the name of the alocation mode
|
static DataType |
getDtypeFromContext()
get the allocation mode from the context
|
static DataType |
getDtypeFromContext(String dType)
Get the allocation mode from the context
|
static int |
lengthForDtype(DataType type)
Returns the length for the given data opType
|
static void |
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
|
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 int lengthForDtype(DataType type)
type - public static DataType getDtypeFromContext(String dType)
public static String getDTypeForName(DataType allocationMode)
allocationMode - public static DataType getDtypeFromContext()
public static void setDTypeForContext(DataType allocationModeForContext)
allocationModeForContext - public static void setDTypeForContext(String allocationModeForContext)
allocationModeForContext - Copyright © 2021. All rights reserved.