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
此拉取请求包括对
swanlab/sync/wandb.py
文件中的sync_wandb
函数的更新,以增强其功能并改善与Swanlab和Weights & Biases(wandb)库的集成。这些更改引入了新参数、额外的日志记录功能以及更好的配置处理。对
sync_wandb
函数的增强:sync_wandb
函数中添加了mode
和wandb_run
参数,以便更好地控制同步模式以及是否应将数据上传到wandb。(swanlab/sync/wandb.py
)patched_init
函数,以包含新的mode
参数并处理wandb_run
设置,如果wandb_run
设置为False
,则允许离线模式。(swanlab/sync/wandb.py
)配置和日志记录改进:
patched_config_update
函数,以便在wandb的配置更新时更新Swanlab的配置。(swanlab/sync/wandb.py
)patched_config_update
函数。(swanlab/sync/wandb.py
)Closes: #793