fix: rank_zero logger#1684
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the PyTorch Lightning integration in swanlab/integration/pytorch_lightning.py by importing and applying the @_rank_zero_experiment decorator to the experiment property, and the @_rank_zero_only decorator to the update_config method. These changes ensure that experiment initialization and configuration updates are properly restricted to the rank-zero process. There are no review comments to address, and no further feedback is required.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Description