Class AbstractMemoryMgr
- java.lang.Object
-
- org.nd4j.autodiff.samediff.internal.memory.AbstractMemoryMgr
-
- All Implemented Interfaces:
Closeable,AutoCloseable,SessionMemMgr
- Direct Known Subclasses:
ArrayCacheMemoryMgr,NoOpMemoryMgr
public abstract class AbstractMemoryMgr extends Object implements SessionMemMgr
-
-
Constructor Summary
Constructors Constructor Description AbstractMemoryMgr()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description INDArraydup(@NonNull INDArray arr)Duplicate the specified array, to an array that is managed/allocated by the session memory managerINDArrayulike(@NonNull INDArray arr)Allocate an uninitialized array with the same datatype and shape as the specified array-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nd4j.autodiff.samediff.internal.SessionMemMgr
allocate, allocate, close, release
-
-
-
-
Method Detail
-
ulike
public INDArray ulike(@NonNull @NonNull INDArray arr)
Description copied from interface:SessionMemMgrAllocate an uninitialized array with the same datatype and shape as the specified array- Specified by:
ulikein interfaceSessionMemMgr
-
dup
public INDArray dup(@NonNull @NonNull INDArray arr)
Description copied from interface:SessionMemMgrDuplicate the specified array, to an array that is managed/allocated by the session memory manager- Specified by:
dupin interfaceSessionMemMgr
-
-