public interface MemoryManager
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
|
org.bytedeco.javacpp.Pointer allocate(long bytes, MemoryKind kind, boolean initialize)
bytes
- void collect(INDArray... arrays)
arrays
- void purgeCaches()
void memcpy(DataBuffer dstBuffer, DataBuffer srcBuffer)
Copyright © 2016. All Rights Reserved.