public class BasicMemoryManager extends Object implements MemoryManager
Constructor and Description |
---|
BasicMemoryManager() |
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
|
void |
memcpy(DataBuffer dstBuffer,
DataBuffer srcBuffer) |
void |
purgeCaches()
This method purges all cached memory chunks
|
public org.bytedeco.javacpp.Pointer allocate(long bytes, MemoryKind kind, boolean initialize)
allocate
in interface MemoryManager
bytes
- kind
- initialize
- public void collect(INDArray... arrays)
collect
in interface MemoryManager
arrays
- public void purgeCaches()
purgeCaches
in interface MemoryManager
public void memcpy(DataBuffer dstBuffer, DataBuffer srcBuffer)
memcpy
in interface MemoryManager
Copyright © 2016. All Rights Reserved.