Uses of Interface
org.nd4j.linalg.api.memory.MemoryWorkspace
-
-
Uses of MemoryWorkspace in org.nd4j.linalg.api.buffer
Fields in org.nd4j.linalg.api.buffer declared as MemoryWorkspace Modifier and Type Field Description protected MemoryWorkspaceBaseDataBuffer. parentWorkspaceMethods in org.nd4j.linalg.api.buffer that return MemoryWorkspace Modifier and Type Method Description MemoryWorkspaceBaseDataBuffer. getParentWorkspace()MemoryWorkspaceDataBuffer. getParentWorkspace()This method returns Workspace this DataBuffer is attached to -
Uses of MemoryWorkspace in org.nd4j.linalg.api.buffer.factory
Methods in org.nd4j.linalg.api.buffer.factory with parameters of type MemoryWorkspace Modifier and Type Method Description DataBufferDataBufferFactory. create(DataType dataType, long length, boolean initialize, MemoryWorkspace workspace)DataBufferDataBufferFactory. createBFloat16(long length, boolean initialize, MemoryWorkspace workspace)DataBufferDataBufferFactory. createBool(long length, boolean initialize, MemoryWorkspace workspace)DataBufferDataBufferFactory. createByte(long length, boolean initialize, MemoryWorkspace workspace)DataBufferDataBufferFactory. createDouble(double[] data, boolean copy, MemoryWorkspace workspace)Creates a double data bufferDataBufferDataBufferFactory. createDouble(double[] data, MemoryWorkspace workspace)Creates a double data bufferDataBufferDataBufferFactory. createDouble(long length, boolean initialize, MemoryWorkspace workspace)DataBufferDataBufferFactory. createDouble(long offset, double[] data, MemoryWorkspace workspace)DataBufferDataBufferFactory. createFloat(float[] data, boolean copy, MemoryWorkspace workspace)DataBufferDataBufferFactory. createFloat(float[] data, MemoryWorkspace workspace)DataBufferDataBufferFactory. createFloat(long length, boolean initialize, MemoryWorkspace workspace)DataBufferDataBufferFactory. createFloat(long offset, float[] data, MemoryWorkspace workspace)DataBufferDataBufferFactory. createHalf(float[] data, boolean copy, MemoryWorkspace workspace)DataBufferDataBufferFactory. createHalf(float[] data, MemoryWorkspace workspace)DataBufferDataBufferFactory. createHalf(long length, boolean initialize, MemoryWorkspace workspace)DataBufferDataBufferFactory. createHalf(long offset, float[] data, MemoryWorkspace workspace)DataBufferDataBufferFactory. createInt(int[] data, boolean copy, MemoryWorkspace workspace)DataBufferDataBufferFactory. createInt(int[] data, MemoryWorkspace workspace)DataBufferDataBufferFactory. createInt(long length, boolean initialize, MemoryWorkspace workspace)DataBufferDataBufferFactory. createLong(long[] data, MemoryWorkspace workspace)DataBufferDataBufferFactory. createLong(long length, boolean initialize, MemoryWorkspace workspace)DataBufferDataBufferFactory. createSame(DataBuffer buffer, boolean init, MemoryWorkspace workspace)This method will create new DataBuffer of the same dataType & same lengthDataBufferDataBufferFactory. createShort(long length, boolean initialize, MemoryWorkspace workspace)DataBufferDataBufferFactory. createUByte(long length, boolean initialize, MemoryWorkspace workspace)DataBufferDataBufferFactory. createUInt(long length, boolean initialize, MemoryWorkspace workspace)DataBufferDataBufferFactory. createULong(long length, boolean initialize, MemoryWorkspace workspace)DataBufferDataBufferFactory. createUShort(long length, boolean initialize, MemoryWorkspace workspace) -
Uses of MemoryWorkspace in org.nd4j.linalg.api.memory
Methods in org.nd4j.linalg.api.memory that return MemoryWorkspace Modifier and Type Method Description MemoryWorkspaceMemoryWorkspaceManager. createNewWorkspace()This method builds new Workspace with default configurationMemoryWorkspaceMemoryWorkspaceManager. createNewWorkspace(WorkspaceConfiguration configuration)This method builds new Workspace with given configurationMemoryWorkspaceMemoryWorkspaceManager. createNewWorkspace(WorkspaceConfiguration configuration, String id)This method builds new Workspace with given configurationMemoryWorkspaceMemoryWorkspaceManager. createNewWorkspace(WorkspaceConfiguration configuration, String id, Integer deviceId)This method builds new Workspace with given configurationMemoryWorkspaceMemoryWorkspaceManager. getAndActivateWorkspace()This method gets & activates default workspaceMemoryWorkspaceMemoryWorkspaceManager. getAndActivateWorkspace(String id)This method gets & activates workspace with a given IdMemoryWorkspaceMemoryWorkspaceManager. getAndActivateWorkspace(WorkspaceConfiguration configuration, String id)This method gets & activates default with a given configuration and IdMemoryWorkspaceBasicMemoryManager. getCurrentWorkspace()MemoryWorkspaceMemoryManager. getCurrentWorkspace()MemoryWorkspaceMemoryWorkspace. getParentWorkspace()This method returns parent Workspace, if any.MemoryWorkspaceMemoryWorkspaceManager. getWorkspaceForCurrentThread()This method returns you current default Workspace for current Thread PLEASE NOTE: If Workspace wasn't defined, new Workspace will be created using current default configurationMemoryWorkspaceMemoryWorkspaceManager. getWorkspaceForCurrentThread(String id)This method returns you Workspace for a given Id for current Thread PLEASE NOTE: If Workspace wasn't defined, new Workspace will be created using current default configurationMemoryWorkspaceMemoryWorkspaceManager. getWorkspaceForCurrentThread(WorkspaceConfiguration configuration, String id)This method returns you Workspace for a given Id for current Thread PLEASE NOTE: If Workspace wasn't defined, new Workspace will be created using given configurationMemoryWorkspaceMemoryWorkspace. notifyScopeBorrowed()This method TEMPORARY enters this workspace, without reset appliedMemoryWorkspaceMemoryWorkspace. notifyScopeEntered()This method notifies given Workspace that new use cycle is starting nowMemoryWorkspaceMemoryWorkspace. notifyScopeLeft()This method notifies given Workspace that use cycle just endedMemoryWorkspaceBasicMemoryManager. scopeOutOfWorkspaces()MemoryWorkspaceMemoryManager. scopeOutOfWorkspaces()This method temporary opens block out of any workspace scope.MemoryWorkspaceMemoryWorkspaceManager. scopeOutOfWorkspaces()This method temporary opens block out of any workspace scope.MemoryWorkspaceMemoryWorkspace. tagOutOfScopeUse()This method temporary disables this workspaceMethods in org.nd4j.linalg.api.memory that return types with arguments of type MemoryWorkspace Modifier and Type Method Description List<MemoryWorkspace>MemoryWorkspaceManager. getAllWorkspacesForCurrentThread()This method returns all workspaces for current threadMethods in org.nd4j.linalg.api.memory with parameters of type MemoryWorkspace Modifier and Type Method Description voidMemoryWorkspaceManager. destroyWorkspace(MemoryWorkspace workspace)This method allows you to destroy given WorkspacevoidBasicMemoryManager. setCurrentWorkspace(MemoryWorkspace workspace)voidMemoryManager. setCurrentWorkspace(MemoryWorkspace workspace)voidMemoryWorkspace. setPreviousWorkspace(MemoryWorkspace memoryWorkspace)Set the previous workspace, if any
NOTE: this method should only be used if you are fully aware of the consequences of doing so.voidMemoryWorkspaceManager. setWorkspaceForCurrentThread(MemoryWorkspace workspace)This method allows you to set given Workspace as default for current ThreadvoidMemoryWorkspaceManager. setWorkspaceForCurrentThread(MemoryWorkspace workspace, String id)This method allows you to set given Workspace for spacific Id for current Thread -
Uses of MemoryWorkspace in org.nd4j.linalg.api.memory.abstracts
Classes in org.nd4j.linalg.api.memory.abstracts that implement MemoryWorkspace Modifier and Type Class Description classDummyWorkspaceclassNd4jWorkspaceFields in org.nd4j.linalg.api.memory.abstracts declared as MemoryWorkspace Modifier and Type Field Description protected MemoryWorkspaceNd4jWorkspace. borrowingWorkspaceprotected MemoryWorkspaceDummyWorkspace. parentWorkspaceprotected MemoryWorkspaceNd4jWorkspace. previousWorkspaceMethods in org.nd4j.linalg.api.memory.abstracts that return MemoryWorkspace Modifier and Type Method Description MemoryWorkspaceDummyWorkspace. getParentWorkspace()This method returns parent Workspace, if any.MemoryWorkspaceNd4jWorkspace. getParentWorkspace()This method returns parent Workspace, if any.MemoryWorkspaceDummyWorkspace. notifyScopeBorrowed()This method TEMPORARY enters this workspace, without reset appliedMemoryWorkspaceNd4jWorkspace. notifyScopeBorrowed()This method TEMPORARY enters this workspace, without reset appliedMemoryWorkspaceDummyWorkspace. notifyScopeEntered()This method notifies given Workspace that new use cycle is starting nowMemoryWorkspaceNd4jWorkspace. notifyScopeEntered()MemoryWorkspaceDummyWorkspace. notifyScopeLeft()This method notifies given Workspace that use cycle just endedMemoryWorkspaceNd4jWorkspace. notifyScopeLeft()This method is shortcut to close() methodMemoryWorkspaceDummyWorkspace. tagOutOfScopeUse()MemoryWorkspaceNd4jWorkspace. tagOutOfScopeUse()Methods in org.nd4j.linalg.api.memory.abstracts with parameters of type MemoryWorkspace Modifier and Type Method Description voidDummyWorkspace. setPreviousWorkspace(MemoryWorkspace memoryWorkspace) -
Uses of MemoryWorkspace in org.nd4j.linalg.api.memory.provider
Fields in org.nd4j.linalg.api.memory.provider with type parameters of type MemoryWorkspace Modifier and Type Field Description protected ThreadLocal<Map<String,MemoryWorkspace>>BasicWorkspaceManager. backingMapMethods in org.nd4j.linalg.api.memory.provider that return MemoryWorkspace Modifier and Type Method Description MemoryWorkspaceBasicWorkspaceManager. getAndActivateWorkspace()This method gets & activates default workspaceMemoryWorkspaceBasicWorkspaceManager. getAndActivateWorkspace(@NonNull String id)This method gets & activates workspace with a given IdMemoryWorkspaceBasicWorkspaceManager. getAndActivateWorkspace(@NonNull WorkspaceConfiguration configuration, @NonNull String id)This method gets & activates default with a given configuration and IdMemoryWorkspaceBasicWorkspaceManager. getWorkspaceForCurrentThread()This method will return workspace with default configuration and default id.MemoryWorkspaceBasicWorkspaceManager. getWorkspaceForCurrentThread(@NonNull String id)MemoryWorkspaceBasicWorkspaceManager. scopeOutOfWorkspaces()This method temporary opens block out of any workspace scope.Methods in org.nd4j.linalg.api.memory.provider that return types with arguments of type MemoryWorkspace Modifier and Type Method Description List<MemoryWorkspace>BasicWorkspaceManager. getAllWorkspacesForCurrentThread()Methods in org.nd4j.linalg.api.memory.provider with parameters of type MemoryWorkspace Modifier and Type Method Description voidBasicWorkspaceManager. destroyWorkspace(MemoryWorkspace workspace)This method destroys given workspaceprotected abstract voidBasicWorkspaceManager. pickReference(MemoryWorkspace workspace)voidBasicWorkspaceManager. setWorkspaceForCurrentThread(@NonNull MemoryWorkspace workspace, @NonNull String id)voidBasicWorkspaceManager. setWorkspaceForCurrentThread(MemoryWorkspace workspace) -
Uses of MemoryWorkspace in org.nd4j.linalg.api.ndarray
Constructors in org.nd4j.linalg.api.ndarray with parameters of type MemoryWorkspace Constructor Description BaseNDArray(DataBuffer buffer, long[] shape, long[] stride, char ordering, DataType type, MemoryWorkspace workspace)BaseNDArray(DataType type, long[] shape, long[] paddings, long[] paddingOffsets, char ordering, MemoryWorkspace workspace)BaseNDArray(DataType type, long[] shape, long[] stride, long offset, char ordering, boolean initialize, MemoryWorkspace workspace) -
Uses of MemoryWorkspace in org.nd4j.linalg.dataset
Constructors in org.nd4j.linalg.dataset with parameters of type MemoryWorkspace Constructor Description AsyncPrefetchThread(@NonNull BlockingQueue<DataSet> queue, @NonNull DataSetIterator iterator, @NonNull DataSet terminator, MemoryWorkspace workspace, int deviceId) -
Uses of MemoryWorkspace in org.nd4j.linalg.factory
Methods in org.nd4j.linalg.factory with parameters of type MemoryWorkspace Modifier and Type Method Description abstract INDArrayBaseNDArrayFactory. create(float[] data, long[] shape, long[] stride, char order, DataType dataType, MemoryWorkspace workspace)INDArrayBaseNDArrayFactory. create(int[] shape, DataType dataType, MemoryWorkspace workspace)INDArrayNDArrayFactory. create(boolean[] data, long[] shape, long[] stride, char order, DataType dataType, MemoryWorkspace workspace)INDArrayNDArrayFactory. create(boolean[] data, long[] shape, long[] stride, DataType dataType, MemoryWorkspace workspace)INDArrayNDArrayFactory. create(byte[] data, long[] shape, long[] stride, char order, DataType dataType, MemoryWorkspace workspace)INDArrayNDArrayFactory. create(byte[] data, long[] shape, long[] stride, DataType dataType, MemoryWorkspace workspace)INDArrayNDArrayFactory. create(double[] data, long[] shape, long[] stride, char order, DataType dataType, MemoryWorkspace workspace)INDArrayNDArrayFactory. create(double[] data, long[] shape, long[] stride, DataType dataType, MemoryWorkspace workspace)INDArrayNDArrayFactory. create(float[] data, long[] shape, long[] stride, char order, DataType dataType, MemoryWorkspace workspace)INDArrayNDArrayFactory. create(float[] data, long[] shape, long[] stride, DataType dataType, MemoryWorkspace workspace)INDArrayNDArrayFactory. create(int[] data, long[] shape, long[] stride, char order, DataType dataType, MemoryWorkspace workspace)INDArrayNDArrayFactory. create(int[] data, long[] shape, long[] stride, DataType dataType, MemoryWorkspace workspace)INDArrayNDArrayFactory. create(int[] shape, DataType dataType, MemoryWorkspace workspace)INDArrayNDArrayFactory. create(long[] data, long[] shape, long[] stride, char order, DataType dataType, MemoryWorkspace workspace)INDArrayNDArrayFactory. create(long[] data, long[] shape, long[] stride, DataType dataType, MemoryWorkspace workspace)INDArrayNDArrayFactory. create(short[] data, long[] shape, long[] stride, char order, DataType dataType, MemoryWorkspace workspace)INDArrayNDArrayFactory. create(short[] data, long[] shape, long[] stride, DataType dataType, MemoryWorkspace workspace)INDArrayNDArrayFactory. create(DataType dataType, long[] shape, char ordering, MemoryWorkspace workspace)INDArrayNDArrayFactory. create(DataType dataType, long[] shape, long[] strides, char ordering, MemoryWorkspace workspace)INDArrayNDArrayFactory. create(DataType dataType, long[] shape, long[] paddings, long[] paddingOffsets, char ordering, MemoryWorkspace workspace)Create an ndArray with padded Bufferstatic DataBufferNd4j. createBuffer(DataType dataType, long length, boolean initialize, MemoryWorkspace workspace)Create a data buffer based on datatype, workspace.static DataBufferNd4j. createTypedBuffer(double[] data, DataType dataType, MemoryWorkspace workspace)Create a buffer based on the data of the underlying java array, specified type and workspacestatic DataBufferNd4j. createTypedBuffer(float[] data, DataType dataType, MemoryWorkspace workspace)INDArrayNDArrayFactory. createUninitialized(DataType dataType, long[] shape, char ordering, MemoryWorkspace workspace) -
Uses of MemoryWorkspace in org.nd4j.linalg.workspace
Methods in org.nd4j.linalg.workspace that return MemoryWorkspace Modifier and Type Method Description MemoryWorkspaceBaseWorkspaceMgr. notifyScopeBorrowed(T arrayType)MemoryWorkspaceWorkspaceMgr. notifyScopeBorrowed(T arrayType)Borrow the scope for the specified array typeMemoryWorkspaceBaseWorkspaceMgr. notifyScopeEntered(T arrayType)MemoryWorkspaceWorkspaceMgr. notifyScopeEntered(T arrayType)Constructors in org.nd4j.linalg.workspace with parameters of type MemoryWorkspace Constructor Description WorkspacesCloseable(@NonNull MemoryWorkspace... workspaces)
-