Error2 reports
Fix NotImplementedError
in PyTorch Lightning
✅ Solution
The "NotImplementedError" in PyTorch Lightning usually arises when a required method (like `training_step`, `configure_optimizers`, or callbacks expecting specific hooks) is not defined in your LightningModule or Callback. Resolve this by ensuring you've overridden all necessary methods in your LightningModule or Callback classes with your custom logic, paying close attention to the expected inputs and outputs for each method as defined in the PyTorch Lightning documentation. If using callbacks, verify existing inherited methods.
Related Issues
Real GitHub issues where developers encountered this error:
Timeline
First reported:Jan 22, 2025
Last reported:Aug 18, 2025
Need More Help?
View the full changelog and migration guides for PyTorch Lightning
View PyTorch Lightning Changelog