nntoolbox.callbacks.debug module

Implement a debug callback. Adapt from fastai course2 v3 notebook 11 a

class nntoolbox.callbacks.debug.DebugCallback(step_to_debug: str, func)[source]

Bases: nntoolbox.callbacks.callbacks.Callback

after_backward() → bool[source]
after_losses(losses: Dict[str, torch.Tensor], train: bool) → Dict[str, torch.Tensor][source]
after_outputs(outputs: Dict[str, torch.Tensor], train: bool) → Dict[str, torch.Tensor][source]
after_step() → bool[source]
on_backward_begin() → bool[source]
on_batch_begin(data: Dict[str, torch.Tensor], train) → Dict[str, torch.Tensor][source]
on_batch_end(logs: Dict[str, Any])[source]
on_epoch_begin()[source]
on_epoch_end(logs: Dict[str, Any]) → bool[source]
on_train_begin()[source]
on_train_end()[source]