Skip to content

Conversation

Zeyi-Lin
Copy link
Member

This pull request includes several enhancements and refactorings to the swanlab/sync module, specifically targeting the tensorboard and wandb synchronization functionalities. The changes introduce a common utility function for extracting arguments and add support for additional tensorboard methods.

Enhancements to argument extraction:

  • swanlab/sync/tensorboard.py: Added _extract_args function to extract parameters from args and kwargs in a consistent manner.
  • swanlab/sync/wandb.py: Added _extract_args function to extract parameters from args and kwargs in a consistent manner.

Enhancements to tensorboard synchronization:

Enhancements to wandb synchronization:

  • swanlab/sync/wandb.py: Modified patched_init and patched_config_update to use _extract_args for extracting parameters and added support for log method with filtering of non-scalar types. [1] [2] [3]

Updates to tests:

@Zeyi-Lin Zeyi-Lin requested a review from SAKURA-CAT January 21, 2025 09:38
@Zeyi-Lin Zeyi-Lin self-assigned this Jan 21, 2025
@Zeyi-Lin Zeyi-Lin added the 💪 enhancement New feature or request label Jan 21, 2025
@SAKURA-CAT SAKURA-CAT merged commit 6a9c93e into main Jan 21, 2025
5 checks passed
@SAKURA-CAT SAKURA-CAT deleted the feat-sync-enhancement branch January 21, 2025 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💪 enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants