Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
支持同步
tensorboardX
和pytorch自带的tensorboard。交互:
This pull request adds functionality for syncing TensorBoard logs with SwanLab. The most important changes include importing and defining new synchronization functions, updating the
__init__.py
files to include these new functions, and adding a test script for the new functionality.New synchronization functions:
swanlab/sync/tensorboard.py
: Addedsync_tensorboardX
andsync_tensorboard_torch
functions to enable synchronization of TensorBoard logs with SwanLab.Updates to initialization files:
swanlab/__init__.py
: Updated imports and__all__
to includesync_tensorboardX
andsync_tensorboard_torch
. [1] [2]swanlab/sync/__init__.py
: Updated imports and__all__
to includesync_tensorboardX
andsync_tensorboard_torch
.Testing:
test/tensorboard_sync.py
: Added a test script to verify the functionality ofsync_tensorboard_torch
with SwanLab.Closes: #786