Modifier and Type | Field and Description |
---|---|
protected MemoryWorkspace |
BaseDataBuffer.parentWorkspace |
Modifier and Type | Method and Description |
---|---|
MemoryWorkspace |
BaseDataBuffer.getParentWorkspace() |
MemoryWorkspace |
DataBuffer.getParentWorkspace()
This method returns Workspace this DataBuffer is attached to
|
Modifier and Type | Method and Description |
---|---|
DataBuffer |
DataBufferFactory.create(DataType dataType,
long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createBFloat16(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createBool(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createByte(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createDouble(double[] data,
boolean copy,
MemoryWorkspace workspace)
Creates a double data buffer
|
DataBuffer |
DataBufferFactory.createDouble(double[] data,
MemoryWorkspace workspace)
Creates a double data buffer
|
DataBuffer |
DataBufferFactory.createDouble(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createDouble(long offset,
double[] data,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createFloat(float[] data,
boolean copy,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createFloat(float[] data,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createFloat(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createFloat(long offset,
float[] data,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createHalf(float[] data,
boolean copy,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createHalf(float[] data,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createHalf(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createHalf(long offset,
float[] data,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createInt(int[] data,
boolean copy,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createInt(int[] data,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createInt(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createLong(long[] data,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createLong(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createSame(DataBuffer buffer,
boolean init,
MemoryWorkspace workspace)
This method will create new DataBuffer of the same dataType & same length
|
DataBuffer |
DataBufferFactory.createShort(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createUByte(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createUInt(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createULong(long length,
boolean initialize,
MemoryWorkspace workspace) |
DataBuffer |
DataBufferFactory.createUShort(long length,
boolean initialize,
MemoryWorkspace workspace) |
Modifier and Type | Method and Description |
---|---|
MemoryWorkspace |
MemoryWorkspaceManager.createNewWorkspace()
This method builds new Workspace with default configuration
|
MemoryWorkspace |
MemoryWorkspaceManager.createNewWorkspace(WorkspaceConfiguration configuration)
This method builds new Workspace with given configuration
|
MemoryWorkspace |
MemoryWorkspaceManager.createNewWorkspace(WorkspaceConfiguration configuration,
String id)
This method builds new Workspace with given configuration
|
MemoryWorkspace |
MemoryWorkspaceManager.createNewWorkspace(WorkspaceConfiguration configuration,
String id,
Integer deviceId)
This method builds new Workspace with given configuration
|
MemoryWorkspace |
MemoryWorkspaceManager.getAndActivateWorkspace()
This method gets & activates default workspace
|
MemoryWorkspace |
MemoryWorkspaceManager.getAndActivateWorkspace(String id)
This method gets & activates workspace with a given Id
|
MemoryWorkspace |
MemoryWorkspaceManager.getAndActivateWorkspace(WorkspaceConfiguration configuration,
String id)
This method gets & activates default with a given configuration and Id
|
MemoryWorkspace |
BasicMemoryManager.getCurrentWorkspace() |
MemoryWorkspace |
MemoryManager.getCurrentWorkspace() |
MemoryWorkspace |
MemoryWorkspace.getParentWorkspace()
This method returns parent Workspace, if any.
|
MemoryWorkspace |
MemoryWorkspaceManager.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 configuration
|
MemoryWorkspace |
MemoryWorkspaceManager.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 configuration
|
MemoryWorkspace |
MemoryWorkspaceManager.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 configuration
|
MemoryWorkspace |
MemoryWorkspace.notifyScopeBorrowed()
This method TEMPORARY enters this workspace, without reset applied
|
MemoryWorkspace |
MemoryWorkspace.notifyScopeEntered()
This method notifies given Workspace that new use cycle is starting now
|
MemoryWorkspace |
MemoryWorkspace.notifyScopeLeft()
This method notifies given Workspace that use cycle just ended
|
MemoryWorkspace |
BasicMemoryManager.scopeOutOfWorkspaces() |
MemoryWorkspace |
MemoryWorkspaceManager.scopeOutOfWorkspaces()
This method temporary opens block out of any workspace scope.
|
MemoryWorkspace |
MemoryManager.scopeOutOfWorkspaces()
This method temporary opens block out of any workspace scope.
|
MemoryWorkspace |
MemoryWorkspace.tagOutOfScopeUse()
This method temporary disables this workspace
|
Modifier and Type | Method and Description |
---|---|
List<MemoryWorkspace> |
MemoryWorkspaceManager.getAllWorkspacesForCurrentThread()
This method returns all workspaces for current thread
|
Modifier and Type | Method and Description |
---|---|
void |
MemoryWorkspaceManager.destroyWorkspace(MemoryWorkspace workspace)
This method allows you to destroy given Workspace
|
void |
BasicMemoryManager.setCurrentWorkspace(MemoryWorkspace workspace) |
void |
MemoryManager.setCurrentWorkspace(MemoryWorkspace workspace) |
void |
MemoryWorkspace.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. |
void |
MemoryWorkspaceManager.setWorkspaceForCurrentThread(MemoryWorkspace workspace)
This method allows you to set given Workspace as default for current Thread
|
void |
MemoryWorkspaceManager.setWorkspaceForCurrentThread(MemoryWorkspace workspace,
String id)
This method allows you to set given Workspace for spacific Id for current Thread
|
Modifier and Type | Class and Description |
---|---|
class |
DummyWorkspace
This MemoryWorkspace implementation is basically No-Op impl.
|
class |
Nd4jWorkspace
Basic implementation for
MemoryWorkspace interface,
further extended in corresponding backends
|
Modifier and Type | Field and Description |
---|---|
protected MemoryWorkspace |
Nd4jWorkspace.borrowingWorkspace |
protected MemoryWorkspace |
DummyWorkspace.parentWorkspace |
protected MemoryWorkspace |
Nd4jWorkspace.previousWorkspace |
Modifier and Type | Method and Description |
---|---|
MemoryWorkspace |
Nd4jWorkspace.getParentWorkspace()
This method returns parent Workspace, if any.
|
MemoryWorkspace |
DummyWorkspace.getParentWorkspace()
This method returns parent Workspace, if any.
|
MemoryWorkspace |
Nd4jWorkspace.notifyScopeBorrowed()
This method TEMPORARY enters this workspace, without reset applied
|
MemoryWorkspace |
DummyWorkspace.notifyScopeBorrowed()
This method TEMPORARY enters this workspace, without reset applied
|
MemoryWorkspace |
Nd4jWorkspace.notifyScopeEntered() |
MemoryWorkspace |
DummyWorkspace.notifyScopeEntered()
This method notifies given Workspace that new use cycle is starting now
|
MemoryWorkspace |
Nd4jWorkspace.notifyScopeLeft()
This method is shortcut to close() method
|
MemoryWorkspace |
DummyWorkspace.notifyScopeLeft()
This method notifies given Workspace that use cycle just ended
|
MemoryWorkspace |
Nd4jWorkspace.tagOutOfScopeUse() |
MemoryWorkspace |
DummyWorkspace.tagOutOfScopeUse() |
Modifier and Type | Method and Description |
---|---|
void |
DummyWorkspace.setPreviousWorkspace(MemoryWorkspace memoryWorkspace) |
Modifier and Type | Field and Description |
---|---|
protected ThreadLocal<Map<String,MemoryWorkspace>> |
BasicWorkspaceManager.backingMap |
Modifier and Type | Method and Description |
---|---|
MemoryWorkspace |
BasicWorkspaceManager.getAndActivateWorkspace()
This method gets & activates default workspace
|
MemoryWorkspace |
BasicWorkspaceManager.getAndActivateWorkspace(@NonNull String id)
This method gets & activates workspace with a given Id
|
MemoryWorkspace |
BasicWorkspaceManager.getAndActivateWorkspace(@NonNull WorkspaceConfiguration configuration,
@NonNull String id)
This method gets & activates default with a given configuration and Id
|
MemoryWorkspace |
BasicWorkspaceManager.getWorkspaceForCurrentThread()
This method will return workspace with default configuration and default id.
|
MemoryWorkspace |
BasicWorkspaceManager.getWorkspaceForCurrentThread(@NonNull String id) |
MemoryWorkspace |
BasicWorkspaceManager.scopeOutOfWorkspaces()
This method temporary opens block out of any workspace scope.
|
Modifier and Type | Method and Description |
---|---|
List<MemoryWorkspace> |
BasicWorkspaceManager.getAllWorkspacesForCurrentThread() |
Modifier and Type | Method and Description |
---|---|
void |
BasicWorkspaceManager.destroyWorkspace(MemoryWorkspace workspace)
This method destroys given workspace
|
protected abstract void |
BasicWorkspaceManager.pickReference(MemoryWorkspace workspace) |
void |
BasicWorkspaceManager.setWorkspaceForCurrentThread(MemoryWorkspace workspace) |
void |
BasicWorkspaceManager.setWorkspaceForCurrentThread(@NonNull MemoryWorkspace workspace,
@NonNull String id) |
Constructor and Description |
---|
BaseNDArray(DataBuffer buffer,
long[] shape,
long[] stride,
char ordering,
DataType type,
MemoryWorkspace workspace) |
BaseNDArray(DataType type,
long[] shape,
long[] stride,
long offset,
char ordering,
boolean initialize,
MemoryWorkspace workspace) |
Constructor and Description |
---|
AsyncPrefetchThread(@NonNull BlockingQueue<DataSet> queue,
@NonNull DataSetIterator iterator,
@NonNull DataSet terminator,
MemoryWorkspace workspace,
int deviceId) |
Modifier and Type | Method and Description |
---|---|
INDArray |
NDArrayFactory.create(boolean[] data,
long[] shape,
long[] stride,
char order,
DataType dataType,
MemoryWorkspace workspace) |
INDArray |
NDArrayFactory.create(boolean[] data,
long[] shape,
long[] stride,
DataType dataType,
MemoryWorkspace workspace) |
INDArray |
NDArrayFactory.create(byte[] data,
long[] shape,
long[] stride,
char order,
DataType dataType,
MemoryWorkspace workspace) |
INDArray |
NDArrayFactory.create(byte[] data,
long[] shape,
long[] stride,
DataType dataType,
MemoryWorkspace workspace) |
INDArray |
NDArrayFactory.create(DataType dataType,
long[] shape,
char ordering,
MemoryWorkspace workspace) |
INDArray |
NDArrayFactory.create(DataType dataType,
long[] shape,
long[] strides,
char ordering,
MemoryWorkspace workspace) |
INDArray |
NDArrayFactory.create(double[] data,
long[] shape,
long[] stride,
char order,
DataType dataType,
MemoryWorkspace workspace) |
INDArray |
NDArrayFactory.create(double[] data,
long[] shape,
long[] stride,
DataType dataType,
MemoryWorkspace workspace) |
abstract INDArray |
BaseNDArrayFactory.create(float[] data,
long[] shape,
long[] stride,
char order,
DataType dataType,
MemoryWorkspace workspace) |
INDArray |
NDArrayFactory.create(float[] data,
long[] shape,
long[] stride,
char order,
DataType dataType,
MemoryWorkspace workspace) |
INDArray |
NDArrayFactory.create(float[] data,
long[] shape,
long[] stride,
DataType dataType,
MemoryWorkspace workspace) |
INDArray |
BaseNDArrayFactory.create(int[] shape,
DataType dataType,
MemoryWorkspace workspace) |
INDArray |
NDArrayFactory.create(int[] shape,
DataType dataType,
MemoryWorkspace workspace) |
INDArray |
NDArrayFactory.create(int[] data,
long[] shape,
long[] stride,
char order,
DataType dataType,
MemoryWorkspace workspace) |
INDArray |
NDArrayFactory.create(int[] data,
long[] shape,
long[] stride,
DataType dataType,
MemoryWorkspace workspace) |
INDArray |
NDArrayFactory.create(long[] data,
long[] shape,
long[] stride,
char order,
DataType dataType,
MemoryWorkspace workspace) |
INDArray |
NDArrayFactory.create(long[] data,
long[] shape,
long[] stride,
DataType dataType,
MemoryWorkspace workspace) |
INDArray |
NDArrayFactory.create(short[] data,
long[] shape,
long[] stride,
char order,
DataType dataType,
MemoryWorkspace workspace) |
INDArray |
NDArrayFactory.create(short[] data,
long[] shape,
long[] stride,
DataType dataType,
MemoryWorkspace workspace) |
static DataBuffer |
Nd4j.createBuffer(DataType dataType,
long length,
boolean initialize,
MemoryWorkspace workspace)
Create a data buffer based on datatype, workspace.
|
static DataBuffer |
Nd4j.createTypedBuffer(double[] data,
DataType dataType,
MemoryWorkspace workspace)
Create a buffer based on the data of the underlying java array, specified type and workspace
|
static DataBuffer |
Nd4j.createTypedBuffer(float[] data,
DataType dataType,
MemoryWorkspace workspace)
|
INDArray |
NDArrayFactory.createUninitialized(DataType dataType,
long[] shape,
char ordering,
MemoryWorkspace workspace) |
Modifier and Type | Method and Description |
---|---|
MemoryWorkspace |
BaseWorkspaceMgr.notifyScopeBorrowed(T arrayType) |
MemoryWorkspace |
WorkspaceMgr.notifyScopeBorrowed(T arrayType)
Borrow the scope for the specified array type
|
MemoryWorkspace |
BaseWorkspaceMgr.notifyScopeEntered(T arrayType) |
MemoryWorkspace |
WorkspaceMgr.notifyScopeEntered(T arrayType) |
Constructor and Description |
---|
WorkspacesCloseable(MemoryWorkspace... workspaces) |
Copyright © 2020. All rights reserved.