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 class
ExecDebuggingListener.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 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-
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.PrintMode
maxIterations
- 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:Listener
Returns 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:Listener
Called just before each operation is executed (native code called, etc) - after all inputs etc have been set- Specified by:
preOpExecution
in interfaceListener
- Overrides:
preOpExecution
in classBaseListener
- Parameters:
sd
- The SameDiff instanceat
- Current iteration/epoch etcop
- Operation that has just been executed
-
-