public class ExecDebuggingListener extends BaseListener
| Modifier and Type | Class and Description |
|---|---|
static class |
ExecDebuggingListener.PrintMode |
| Constructor and Description |
|---|
ExecDebuggingListener(ExecDebuggingListener.PrintMode printMode,
int maxIterations,
boolean logIter) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isActive(Operation operation)
Returns whether this listener is active during the given operation.
|
void |
preOpExecution(SameDiff sd,
At at,
SameDiffOp op,
OpContext opContext)
Called just before each operation is executed (native code called, etc) - after all inputs etc have been set
|
activationAvailable, epochEnd, epochStart, iterationDone, iterationStart, operationEnd, operationStart, opExecution, preUpdate, requiredVariables, validationDonepublic ExecDebuggingListener(ExecDebuggingListener.PrintMode printMode, int maxIterations, boolean logIter)
printMode - Print mode, see ExecDebuggingListener.PrintModemaxIterations - Maximum number of iterations to print. <= 0 for "all iterations"logIter - If true: prefix iteration/epoch, such as "(iter=1,epoch=0,op=3)" to the outputpublic boolean isActive(Operation operation)
Listenerpublic void preOpExecution(SameDiff sd, At at, SameDiffOp op, OpContext opContext)
ListenerpreOpExecution in interface ListenerpreOpExecution in class BaseListenersd - The SameDiff instanceat - Current iteration/epoch etcop - Operation that has just been executedCopyright © 2021. All rights reserved.