public class DL4JSameDiffMemoryMgr extends AbstractMemoryMgr
SessionMemMgr
that uses DL4J workspaces for memory management.
Any op outputs are allocated in the output workspace if they are returned to the layer; otherwise they are placed in
the DL4J working memory workspaceConstructor and Description |
---|
DL4JSameDiffMemoryMgr(String workingMemoryWs,
String outputWs,
org.nd4j.linalg.api.memory.conf.WorkspaceConfiguration confWorking,
org.nd4j.linalg.api.memory.conf.WorkspaceConfiguration confOutput) |
Modifier and Type | Method and Description |
---|---|
INDArray |
allocate(boolean detached,
org.nd4j.linalg.api.buffer.DataType dataType,
long... shape) |
INDArray |
allocate(boolean detached,
LongShapeDescriptor descriptor) |
void |
close() |
void |
release(INDArray array) |
dup, ulike
public INDArray allocate(boolean detached, org.nd4j.linalg.api.buffer.DataType dataType, long... shape)
public INDArray allocate(boolean detached, LongShapeDescriptor descriptor)
public void release(INDArray array)
public void close()
Copyright © 2019. All rights reserved.