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