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,
org.nd4j.linalg.api.memory.enums.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.
|
void |
memset(INDArray array) |
void |
release(org.bytedeco.javacpp.Pointer pointer,
org.nd4j.linalg.api.memory.enums.MemoryKind kind)
This method releases previously allocated memory chunk
|
getAutoGcWindow, getAverageLoopTime, getCurrentWorkspace, getLastGcTime, getOccasionalGcFrequency, invokeGc, invokeGcOccasionally, memcpy, notifyScopeEntered, notifyScopeLeft, purgeCaches, scopeOutOfWorkspaces, setAutoGcWindow, setCurrentWorkspace, setOccasionalGcFrequency, toggleAveraging, togglePeriodicGcpublic org.bytedeco.javacpp.Pointer allocate(long bytes,
org.nd4j.linalg.api.memory.enums.MemoryKind kind,
boolean initialize)
allocate in interface MemoryManagerallocate in class BasicMemoryManagerbytes - kind - initialize - public void release(@NonNull
org.bytedeco.javacpp.Pointer pointer,
org.nd4j.linalg.api.memory.enums.MemoryKind kind)
pointer - kind - public void collect(INDArray... arrays)
collect in interface MemoryManagercollect in class BasicMemoryManagerarrays - public boolean isPeriodicGcActive()
isPeriodicGcActive in interface MemoryManagerisPeriodicGcActive in class BasicMemoryManagerpublic void memset(INDArray array)
Copyright © 2017. All rights reserved.