public static class LayerWorkspaceMgr.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
LayerWorkspaceMgr |
build() |
LayerWorkspaceMgr.Builder |
defaultNoWorkspace()
Set the default to be scoped out for all array types.
|
LayerWorkspaceMgr.Builder |
defaultWorkspace(String workspaceName,
org.nd4j.linalg.api.memory.conf.WorkspaceConfiguration configuration)
Set the default workspace for all array types to the specified workspace name/configuration
NOTE: This will NOT override any settings previously set.
|
LayerWorkspaceMgr.Builder |
noWorkspaceFor(ArrayType type)
Specify that no workspace should be used for array of the specified type - i.e., these arrays should all
be scoped out.
|
LayerWorkspaceMgr.Builder |
with(ArrayType type,
String workspaceName,
org.nd4j.linalg.api.memory.conf.WorkspaceConfiguration configuration)
Configure the workspace (name, configuration) for the specified array type
|
public LayerWorkspaceMgr.Builder defaultNoWorkspace()
public LayerWorkspaceMgr.Builder noWorkspaceFor(ArrayType type)
type
- Array type to set scoped out forpublic LayerWorkspaceMgr.Builder defaultWorkspace(String workspaceName, org.nd4j.linalg.api.memory.conf.WorkspaceConfiguration configuration)
workspaceName
- Name of the workspace to use for all (not set) arrray typesconfiguration
- Configuration to use for all (not set) arrray typespublic LayerWorkspaceMgr.Builder with(ArrayType type, String workspaceName, org.nd4j.linalg.api.memory.conf.WorkspaceConfiguration configuration)
type
- Array typeworkspaceName
- Workspace name for the specified array typeconfiguration
- Configuration for the specified array typepublic LayerWorkspaceMgr build()
Copyright © 2018. All rights reserved.