Class ExecDebuggingListener
- java.lang.Object
-
- org.nd4j.autodiff.listeners.BaseListener
-
- org.nd4j.autodiff.listeners.debugging.ExecDebuggingListener
-
- All Implemented Interfaces:
Listener
public class ExecDebuggingListener extends BaseListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExecDebuggingListener.PrintMode
-
Constructor Summary
Constructors Constructor Description ExecDebuggingListener(ExecDebuggingListener.PrintMode printMode, int maxIterations, boolean logIter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisActive(Operation operation)Returns whether this listener is active during the given operation.voidpreOpExecution(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-
Methods inherited from class org.nd4j.autodiff.listeners.BaseListener
activationAvailable, epochEnd, epochStart, iterationDone, iterationStart, operationEnd, operationStart, opExecution, preUpdate, requiredVariables, validationDone
-
-
-
-
Constructor Detail
-
ExecDebuggingListener
public ExecDebuggingListener(ExecDebuggingListener.PrintMode printMode, int maxIterations, boolean logIter)
- Parameters:
printMode- Print mode, seeExecDebuggingListener.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 output
-
-
Method Detail
-
isActive
public boolean isActive(Operation operation)
Description copied from interface:ListenerReturns whether this listener is active during the given operation. If this returns false for the given operation, those listener methods will not be called.
-
preOpExecution
public void preOpExecution(SameDiff sd, At at, SameDiffOp op, OpContext opContext)
Description copied from interface:ListenerCalled just before each operation is executed (native code called, etc) - after all inputs etc have been set- Specified by:
preOpExecutionin interfaceListener- Overrides:
preOpExecutionin classBaseListener- Parameters:
sd- The SameDiff instanceat- Current iteration/epoch etcop- Operation that has just been executed
-
-