Package org.nd4j.linalg.cache
Class BasicConstantHandler
- java.lang.Object
-
- org.nd4j.linalg.cache.BasicConstantHandler
-
- All Implemented Interfaces:
ConstantHandler
public abstract class BasicConstantHandler extends Object implements ConstantHandler
-
-
Constructor Summary
Constructors Constructor Description BasicConstantHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
moveToConstantSpace(DataBuffer dataBuffer)
If specific hardware supports dedicated constant memory, this method forces DataBuffer passed in to be moved to that constant memory.DataBuffer
relocateConstantSpace(DataBuffer dataBuffer)
PLEASE NOTE: This method implementation is hardware-dependant.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nd4j.linalg.cache.ConstantHandler
getCachedBytes, getConstantBuffer, getConstantBuffer, getConstantBuffer, getConstantBuffer, getConstantBuffer, purgeConstants
-
-
-
-
Method Detail
-
moveToConstantSpace
public long moveToConstantSpace(DataBuffer dataBuffer)
Description copied from interface:ConstantHandler
If specific hardware supports dedicated constant memory, this method forces DataBuffer passed in to be moved to that constant memory. PLEASE NOTE: This method implementation is hardware-dependant.- Specified by:
moveToConstantSpace
in interfaceConstantHandler
- Returns:
-
relocateConstantSpace
public DataBuffer relocateConstantSpace(DataBuffer dataBuffer)
Description copied from interface:ConstantHandler
PLEASE NOTE: This method implementation is hardware-dependant. PLEASE NOTE: This method does NOT allow concurrent use of any array- Specified by:
relocateConstantSpace
in interfaceConstantHandler
- Returns:
-
-