public class CpuWorkspace extends Nd4jWorkspace
Nd4jWorkspace.GarbageWorkspaceReferenceborrowingWorkspace, currentSize, cycleAllocations, cyclesCount, deviceId, deviceOffset, disabledCounter, externalAllocations, externalCount, guid, hostOffset, id, initialBlockSize, isBorrowed, isDebug, isInit, isLearning, isOpen, isOver, isUsed, lastCycleAllocations, maxCycle, memoryManager, pinnedAllocations, pinnedAllocationsSize, pinnedCount, previousWorkspace, resetPlanned, SAFETY_OFFSET, spilledAllocationsSize, stepsCount, stepsNumber, tagScope, threadId, trimmedMode, trimmedStep, workspace, workspaceConfiguration| Constructor and Description |
|---|
CpuWorkspace(org.nd4j.linalg.api.memory.conf.WorkspaceConfiguration configuration) |
CpuWorkspace(org.nd4j.linalg.api.memory.conf.WorkspaceConfiguration configuration,
String workspaceId) |
CpuWorkspace(org.nd4j.linalg.api.memory.conf.WorkspaceConfiguration configuration,
String workspaceId,
Integer deviceId) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearExternalAllocations() |
protected void |
clearPinnedAllocations(boolean extended) |
void |
destroyWorkspace(boolean extended) |
protected void |
init() |
protected void |
resetWorkspace() |
alloc, alloc, close, destroyWorkspace, enableDebug, free, getCurrentSize, getCyclesCount, getDeviceId, getDeviceOffset, getHostOffset, getId, getInitialBlockSize, getLastCycleAllocations, getMaxCycleAllocations, getNumberOfExternalAllocations, getNumberOfPinnedAllocations, getParentWorkspace, getPinnedSize, getSpilledSize, getStepNumber, getThisCycleAllocations, getThreadId, getWorkspaceConfiguration, initializeWorkspace, isScopeActive, notifyScopeBorrowed, notifyScopeEntered, notifyScopeLeft, reset, tagOutOfScopeUse, toggleWorkspaceUse, toStringpublic CpuWorkspace(@NonNull
org.nd4j.linalg.api.memory.conf.WorkspaceConfiguration configuration)
public CpuWorkspace(@NonNull
org.nd4j.linalg.api.memory.conf.WorkspaceConfiguration configuration,
@NonNull
String workspaceId)
protected void init()
init in class Nd4jWorkspaceprotected void clearPinnedAllocations(boolean extended)
clearPinnedAllocations in class Nd4jWorkspaceprotected void clearExternalAllocations()
clearExternalAllocations in class Nd4jWorkspacepublic void destroyWorkspace(boolean extended)
destroyWorkspace in interface org.nd4j.linalg.api.memory.MemoryWorkspacedestroyWorkspace in class Nd4jWorkspaceprotected void resetWorkspace()
resetWorkspace in class Nd4jWorkspaceCopyright © 2017. All rights reserved.