File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 3
3
@file: __init__.py
4
4
@time: 2025/6/21 17:10
5
5
@description: 回调器模块,四大回调器对应 swanlab 的四种运行模式。
6
- 1. local: 本地模式回调器
6
+ 1. local: 本地模式回调器,此回调不自动导出
7
7
2. cloud: 云端模式回调器
8
8
3. offline: 离线模式回调器
9
9
4. disabled: 禁用回调器
10
10
"""
11
11
12
12
from .cloud import CloudPyCallback
13
13
from .disabled import DisabledCallback
14
- from .local import LocalRunCallback
15
14
from .offline import OfflineCallback
Original file line number Diff line number Diff line change 11
11
from rich .text import Text
12
12
13
13
from swanlab .core_python import auth
14
- from swanlab .data .callbacker import *
15
14
from swanlab .data .formatter import check_load_json_yaml
16
15
from swanlab .data .run import SwanLabRun
17
16
from swanlab .data .run .helper import SwanLabRunOperator
@@ -165,6 +164,8 @@ def _create_operator(
165
164
:param cbs: 用户传递的回调函数列表
166
165
:return: SwanLabRunOperator, CloudRunCallback
167
166
"""
167
+ from swanlab .data .callbacker import DisabledCallback , CloudPyCallback , OfflineCallback
168
+
168
169
c = []
169
170
# 1.1. 禁用模式
170
171
if mode == SwanLabMode .DISABLED .value :
You can’t perform that action at this time.
0 commit comments