Class ActivationGradientCheckListener

  • All Implemented Interfaces:
    Listener

    public class ActivationGradientCheckListener
    extends BaseListener
    • Constructor Detail

      • ActivationGradientCheckListener

        public ActivationGradientCheckListener()
    • 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.
      • opExecution

        public void opExecution​(SameDiff sd,
                                At at,
                                MultiDataSet batch,
                                SameDiffOp op,
                                OpContext opContext,
                                INDArray[] outputs)
        Description copied from interface: Listener
        Called at the end of each operation execution

        Note: Outputs will most likely be freed later, use detach() if you need to save it.

        Specified by:
        opExecution in interface Listener
        Overrides:
        opExecution in class BaseListener
        Parameters:
        sd - The SameDiff instance
        at - Current iteration/epoch etc
        batch - The batch's input data. May be null if not called with a batch
        op - Operation that has just been executed
        outputs - The output arrays for the just-executed operation