public class CpuMemoryManager extends BasicMemoryManager
averageLoopTime, averagingEnabled, freqCounter, frequency, intervals, intervalTail, lastGcTime, noGcWindow, periodicEnabled| Constructor and Description |
|---|
CpuMemoryManager() |
| Modifier and Type | Method and Description |
|---|---|
org.bytedeco.javacpp.Pointer |
allocate(long bytes,
MemoryKind kind,
boolean initialize)
This method returns
PLEASE NOTE: Cache options depend on specific implementations
|
void |
collect(INDArray... arrays)
This method detaches off-heap memory from passed INDArray instances, and optionally stores them in cache for future reuse
PLEASE NOTE: Cache options depend on specific implementations
|
boolean |
isPeriodicGcActive()
Nd4j-native backend doesn't use periodic GC.
|
getAutoGcWindow, getAverageLoopTime, getLastGcTime, getOccasionalGcFrequency, invokeGc, invokeGcOccasionally, memcpy, notifyScopeEntered, notifyScopeLeft, purgeCaches, setAutoGcWindow, setOccasionalGcFrequency, toggleAveraging, togglePeriodicGcpublic org.bytedeco.javacpp.Pointer allocate(long bytes,
MemoryKind kind,
boolean initialize)
allocate in interface MemoryManagerallocate in class BasicMemoryManagerbytes - kind - initialize - public void collect(INDArray... arrays)
collect in interface MemoryManagercollect in class BasicMemoryManagerarrays - public boolean isPeriodicGcActive()
isPeriodicGcActive in interface MemoryManagerisPeriodicGcActive in class BasicMemoryManagerCopyright © 2017. All Rights Reserved.