Class ExecDebuggingListener

    • Constructor Detail

      • ExecDebuggingListener

        public ExecDebuggingListener​(ExecDebuggingListener.PrintMode printMode,
                                     int maxIterations,
                                     boolean logIter)
        Parameters:
        printMode - Print mode, see ExecDebuggingListener.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 interface Listener
        Overrides:
        preOpExecution in class BaseListener
        Parameters:
        sd - The SameDiff instance
        at - Current iteration/epoch etc
        op - Operation that has just been executed