| Modifier and Type | Method and Description |
|---|---|
Operation |
At.operation() |
static Operation |
Operation.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Operation[] |
Operation.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
At |
At.copy(Operation operation) |
static At |
At.defaultAt(Operation op) |
boolean |
Listener.isActive(Operation operation)
Returns whether this listener is active during the given operation.
|
void |
Listener.operationEnd(SameDiff sd,
Operation op)
Called at the end of an operation, e.g.
|
void |
BaseListener.operationEnd(SameDiff sd,
Operation op) |
void |
Listener.operationStart(SameDiff sd,
Operation op)
Called at the start of an operation, e.g.
|
void |
BaseListener.operationStart(SameDiff sd,
Operation op) |
Set<String> |
ListenerVariables.requiredVariables(Operation op)
Get required variables for specified op
|
ListenerVariables.Builder |
ListenerVariables.Builder.requireVariables(Operation op,
SDVariable... variables)
Add required variables for the specified op
|
ListenerVariables.Builder |
ListenerVariables.Builder.requireVariables(Operation op,
String... variables)
Add required variables for the specified op
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
CheckpointListener.isActive(Operation operation) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ExecDebuggingListener.isActive(Operation operation) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
UIListener.isActive(Operation operation) |
boolean |
ScoreListener.isActive(Operation operation) |
boolean |
HistoryListener.isActive(Operation operation) |
void |
HistoryListener.operationEnd(SameDiff sd,
Operation op) |
void |
HistoryListener.operationStart(SameDiff sd,
Operation op) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,INDArray> |
SameDiff.execBackwards(Map<String,INDArray> placeholders,
List<String> variableGradNamesList,
Operation operation)
As per
SameDiff.execBackwards(Map, Operation, MultiDataSet, Collection, List), but the set of gradients to calculate can be specified manually.For example, to calculate the gradient for placeholder variable "myPlaceholder", use execBackwards(placeholders, Arrays.asList(myPlaceholder.gradient().getVarName()). |
protected Map<String,INDArray> |
SameDiff.execBackwards(Map<String,INDArray> placeholders,
List<String> variableGradNamesList,
Operation operation,
MultiDataSet batch,
Collection<String> requiredActivations,
List<Listener> activeListeners) |
void |
SameDiff.execBackwards(Map<String,INDArray> placeholders,
Operation op)
Create (if required) and then calculate the variable gradients (backward pass) for this graph.
After execution, the gradient arrays can be accessed using myVariable.getGradient().getArr()Note: This method by default calculates VARIABLE type SDVariable gradients only (as well as any other gradients needed to calculate the variable gradients). |
protected void |
SameDiff.execBackwards(Map<String,INDArray> placeholders,
Operation op,
MultiDataSet batch,
Collection<String> requiredActivations,
List<Listener> activeListeners) |
Map<String,INDArray> |
SameDiff.execBackwards(Map<String,INDArray> placeholders,
Operation op,
String... variableGradNamesList)
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ActivationGradientCheckListener.isActive(Operation operation) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
NonInplaceValidationListener.isActive(Operation operation) |
Copyright © 2019. All rights reserved.