nshtrainer 1.0.0b14__py3-none-any.whl → 1.0.0b16__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nshtrainer/configs/__init__.py +134 -405
- nshtrainer/configs/_checkpoint/__init__.py +2 -25
- nshtrainer/configs/_checkpoint/metadata/__init__.py +2 -25
- nshtrainer/configs/_directory/__init__.py +5 -28
- nshtrainer/configs/_hf_hub/__init__.py +5 -28
- nshtrainer/configs/callbacks/__init__.py +52 -161
- nshtrainer/configs/callbacks/actsave/__init__.py +2 -23
- nshtrainer/configs/callbacks/base/__init__.py +1 -20
- nshtrainer/configs/callbacks/checkpoint/__init__.py +19 -64
- nshtrainer/configs/callbacks/checkpoint/_base/__init__.py +9 -36
- nshtrainer/configs/callbacks/checkpoint/best_checkpoint/__init__.py +10 -43
- nshtrainer/configs/callbacks/checkpoint/last_checkpoint/__init__.py +9 -36
- nshtrainer/configs/callbacks/checkpoint/on_exception_checkpoint/__init__.py +6 -29
- nshtrainer/configs/callbacks/debug_flag/__init__.py +4 -27
- nshtrainer/configs/callbacks/directory_setup/__init__.py +6 -29
- nshtrainer/configs/callbacks/early_stopping/__init__.py +5 -34
- nshtrainer/configs/callbacks/ema/__init__.py +2 -23
- nshtrainer/configs/callbacks/finite_checks/__init__.py +4 -29
- nshtrainer/configs/callbacks/gradient_skipping/__init__.py +6 -29
- nshtrainer/configs/callbacks/log_epoch/__init__.py +4 -27
- nshtrainer/configs/callbacks/lr_monitor/__init__.py +4 -27
- nshtrainer/configs/callbacks/norm_logging/__init__.py +4 -29
- nshtrainer/configs/callbacks/print_table/__init__.py +4 -29
- nshtrainer/configs/callbacks/rlp_sanity_checks/__init__.py +6 -29
- nshtrainer/configs/callbacks/shared_parameters/__init__.py +6 -29
- nshtrainer/configs/callbacks/timer/__init__.py +4 -27
- nshtrainer/configs/callbacks/wandb_upload_code/__init__.py +6 -29
- nshtrainer/configs/callbacks/wandb_watch/__init__.py +4 -29
- nshtrainer/configs/loggers/__init__.py +13 -52
- nshtrainer/configs/loggers/_base/__init__.py +1 -18
- nshtrainer/configs/loggers/actsave/__init__.py +2 -25
- nshtrainer/configs/loggers/csv/__init__.py +2 -21
- nshtrainer/configs/loggers/tensorboard/__init__.py +4 -27
- nshtrainer/configs/loggers/wandb/__init__.py +9 -40
- nshtrainer/configs/lr_scheduler/__init__.py +10 -51
- nshtrainer/configs/lr_scheduler/_base/__init__.py +1 -22
- nshtrainer/configs/lr_scheduler/linear_warmup_cosine/__init__.py +9 -36
- nshtrainer/configs/lr_scheduler/reduce_lr_on_plateau/__init__.py +7 -36
- nshtrainer/configs/metrics/__init__.py +1 -18
- nshtrainer/configs/metrics/_config/__init__.py +1 -18
- nshtrainer/configs/nn/__init__.py +19 -70
- nshtrainer/configs/nn/mlp/__init__.py +3 -24
- nshtrainer/configs/nn/nonlinearity/__init__.py +30 -121
- nshtrainer/configs/optimizer/__init__.py +3 -24
- nshtrainer/configs/profiler/__init__.py +5 -30
- nshtrainer/configs/profiler/_base/__init__.py +1 -20
- nshtrainer/configs/profiler/advanced/__init__.py +4 -27
- nshtrainer/configs/profiler/pytorch/__init__.py +2 -27
- nshtrainer/configs/profiler/simple/__init__.py +2 -25
- nshtrainer/configs/trainer/__init__.py +50 -169
- nshtrainer/configs/trainer/_config/__init__.py +50 -169
- nshtrainer/configs/trainer/trainer/__init__.py +2 -23
- nshtrainer/configs/util/__init__.py +33 -102
- nshtrainer/configs/util/_environment_info/__init__.py +29 -90
- nshtrainer/configs/util/config/__init__.py +4 -27
- nshtrainer/configs/util/config/dtype/__init__.py +1 -18
- nshtrainer/configs/util/config/duration/__init__.py +3 -30
- nshtrainer/trainer/_config.py +42 -10
- {nshtrainer-1.0.0b14.dist-info → nshtrainer-1.0.0b16.dist-info}/METADATA +1 -1
- {nshtrainer-1.0.0b14.dist-info → nshtrainer-1.0.0b16.dist-info}/RECORD +61 -61
- {nshtrainer-1.0.0b14.dist-info → nshtrainer-1.0.0b16.dist-info}/WHEEL +0 -0
@@ -2,37 +2,8 @@ from __future__ import annotations
|
|
2
2
|
|
3
3
|
__codegen__ = True
|
4
4
|
|
5
|
-
from
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
from nshtrainer.callbacks.early_stopping import (
|
11
|
-
CallbackConfigBase as CallbackConfigBase,
|
12
|
-
)
|
13
|
-
from nshtrainer.callbacks.early_stopping import (
|
14
|
-
EarlyStoppingCallbackConfig as EarlyStoppingCallbackConfig,
|
15
|
-
)
|
16
|
-
from nshtrainer.callbacks.early_stopping import MetricConfig as MetricConfig
|
17
|
-
else:
|
18
|
-
|
19
|
-
def __getattr__(name):
|
20
|
-
import importlib
|
21
|
-
|
22
|
-
if name in globals():
|
23
|
-
return globals()[name]
|
24
|
-
if name == "CallbackConfigBase":
|
25
|
-
return importlib.import_module(
|
26
|
-
"nshtrainer.callbacks.early_stopping"
|
27
|
-
).CallbackConfigBase
|
28
|
-
if name == "EarlyStoppingCallbackConfig":
|
29
|
-
return importlib.import_module(
|
30
|
-
"nshtrainer.callbacks.early_stopping"
|
31
|
-
).EarlyStoppingCallbackConfig
|
32
|
-
if name == "MetricConfig":
|
33
|
-
return importlib.import_module(
|
34
|
-
"nshtrainer.callbacks.early_stopping"
|
35
|
-
).MetricConfig
|
36
|
-
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
|
37
|
-
|
38
|
-
# Submodule exports
|
5
|
+
from nshtrainer.callbacks.early_stopping import CallbackConfigBase as CallbackConfigBase
|
6
|
+
from nshtrainer.callbacks.early_stopping import (
|
7
|
+
EarlyStoppingCallbackConfig as EarlyStoppingCallbackConfig,
|
8
|
+
)
|
9
|
+
from nshtrainer.callbacks.early_stopping import MetricConfig as MetricConfig
|
@@ -2,26 +2,5 @@ from __future__ import annotations
|
|
2
2
|
|
3
3
|
__codegen__ = True
|
4
4
|
|
5
|
-
from
|
6
|
-
|
7
|
-
# Config/alias imports
|
8
|
-
|
9
|
-
if TYPE_CHECKING:
|
10
|
-
from nshtrainer.callbacks.ema import CallbackConfigBase as CallbackConfigBase
|
11
|
-
from nshtrainer.callbacks.ema import EMACallbackConfig as EMACallbackConfig
|
12
|
-
else:
|
13
|
-
|
14
|
-
def __getattr__(name):
|
15
|
-
import importlib
|
16
|
-
|
17
|
-
if name in globals():
|
18
|
-
return globals()[name]
|
19
|
-
if name == "CallbackConfigBase":
|
20
|
-
return importlib.import_module(
|
21
|
-
"nshtrainer.callbacks.ema"
|
22
|
-
).CallbackConfigBase
|
23
|
-
if name == "EMACallbackConfig":
|
24
|
-
return importlib.import_module("nshtrainer.callbacks.ema").EMACallbackConfig
|
25
|
-
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
|
26
|
-
|
27
|
-
# Submodule exports
|
5
|
+
from nshtrainer.callbacks.ema import CallbackConfigBase as CallbackConfigBase
|
6
|
+
from nshtrainer.callbacks.ema import EMACallbackConfig as EMACallbackConfig
|
@@ -2,32 +2,7 @@ from __future__ import annotations
|
|
2
2
|
|
3
3
|
__codegen__ = True
|
4
4
|
|
5
|
-
from
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
if TYPE_CHECKING:
|
10
|
-
from nshtrainer.callbacks.finite_checks import (
|
11
|
-
CallbackConfigBase as CallbackConfigBase,
|
12
|
-
)
|
13
|
-
from nshtrainer.callbacks.finite_checks import (
|
14
|
-
FiniteChecksCallbackConfig as FiniteChecksCallbackConfig,
|
15
|
-
)
|
16
|
-
else:
|
17
|
-
|
18
|
-
def __getattr__(name):
|
19
|
-
import importlib
|
20
|
-
|
21
|
-
if name in globals():
|
22
|
-
return globals()[name]
|
23
|
-
if name == "CallbackConfigBase":
|
24
|
-
return importlib.import_module(
|
25
|
-
"nshtrainer.callbacks.finite_checks"
|
26
|
-
).CallbackConfigBase
|
27
|
-
if name == "FiniteChecksCallbackConfig":
|
28
|
-
return importlib.import_module(
|
29
|
-
"nshtrainer.callbacks.finite_checks"
|
30
|
-
).FiniteChecksCallbackConfig
|
31
|
-
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
|
32
|
-
|
33
|
-
# Submodule exports
|
5
|
+
from nshtrainer.callbacks.finite_checks import CallbackConfigBase as CallbackConfigBase
|
6
|
+
from nshtrainer.callbacks.finite_checks import (
|
7
|
+
FiniteChecksCallbackConfig as FiniteChecksCallbackConfig,
|
8
|
+
)
|
@@ -2,32 +2,9 @@ from __future__ import annotations
|
|
2
2
|
|
3
3
|
__codegen__ = True
|
4
4
|
|
5
|
-
from
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
CallbackConfigBase as CallbackConfigBase,
|
12
|
-
)
|
13
|
-
from nshtrainer.callbacks.gradient_skipping import (
|
14
|
-
GradientSkippingCallbackConfig as GradientSkippingCallbackConfig,
|
15
|
-
)
|
16
|
-
else:
|
17
|
-
|
18
|
-
def __getattr__(name):
|
19
|
-
import importlib
|
20
|
-
|
21
|
-
if name in globals():
|
22
|
-
return globals()[name]
|
23
|
-
if name == "CallbackConfigBase":
|
24
|
-
return importlib.import_module(
|
25
|
-
"nshtrainer.callbacks.gradient_skipping"
|
26
|
-
).CallbackConfigBase
|
27
|
-
if name == "GradientSkippingCallbackConfig":
|
28
|
-
return importlib.import_module(
|
29
|
-
"nshtrainer.callbacks.gradient_skipping"
|
30
|
-
).GradientSkippingCallbackConfig
|
31
|
-
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
|
32
|
-
|
33
|
-
# Submodule exports
|
5
|
+
from nshtrainer.callbacks.gradient_skipping import (
|
6
|
+
CallbackConfigBase as CallbackConfigBase,
|
7
|
+
)
|
8
|
+
from nshtrainer.callbacks.gradient_skipping import (
|
9
|
+
GradientSkippingCallbackConfig as GradientSkippingCallbackConfig,
|
10
|
+
)
|
@@ -2,30 +2,7 @@ from __future__ import annotations
|
|
2
2
|
|
3
3
|
__codegen__ = True
|
4
4
|
|
5
|
-
from
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
if TYPE_CHECKING:
|
10
|
-
from nshtrainer.callbacks.log_epoch import CallbackConfigBase as CallbackConfigBase
|
11
|
-
from nshtrainer.callbacks.log_epoch import (
|
12
|
-
LogEpochCallbackConfig as LogEpochCallbackConfig,
|
13
|
-
)
|
14
|
-
else:
|
15
|
-
|
16
|
-
def __getattr__(name):
|
17
|
-
import importlib
|
18
|
-
|
19
|
-
if name in globals():
|
20
|
-
return globals()[name]
|
21
|
-
if name == "CallbackConfigBase":
|
22
|
-
return importlib.import_module(
|
23
|
-
"nshtrainer.callbacks.log_epoch"
|
24
|
-
).CallbackConfigBase
|
25
|
-
if name == "LogEpochCallbackConfig":
|
26
|
-
return importlib.import_module(
|
27
|
-
"nshtrainer.callbacks.log_epoch"
|
28
|
-
).LogEpochCallbackConfig
|
29
|
-
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
|
30
|
-
|
31
|
-
# Submodule exports
|
5
|
+
from nshtrainer.callbacks.log_epoch import CallbackConfigBase as CallbackConfigBase
|
6
|
+
from nshtrainer.callbacks.log_epoch import (
|
7
|
+
LogEpochCallbackConfig as LogEpochCallbackConfig,
|
8
|
+
)
|
@@ -2,30 +2,7 @@ from __future__ import annotations
|
|
2
2
|
|
3
3
|
__codegen__ = True
|
4
4
|
|
5
|
-
from
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
if TYPE_CHECKING:
|
10
|
-
from nshtrainer.callbacks.lr_monitor import CallbackConfigBase as CallbackConfigBase
|
11
|
-
from nshtrainer.callbacks.lr_monitor import (
|
12
|
-
LearningRateMonitorConfig as LearningRateMonitorConfig,
|
13
|
-
)
|
14
|
-
else:
|
15
|
-
|
16
|
-
def __getattr__(name):
|
17
|
-
import importlib
|
18
|
-
|
19
|
-
if name in globals():
|
20
|
-
return globals()[name]
|
21
|
-
if name == "CallbackConfigBase":
|
22
|
-
return importlib.import_module(
|
23
|
-
"nshtrainer.callbacks.lr_monitor"
|
24
|
-
).CallbackConfigBase
|
25
|
-
if name == "LearningRateMonitorConfig":
|
26
|
-
return importlib.import_module(
|
27
|
-
"nshtrainer.callbacks.lr_monitor"
|
28
|
-
).LearningRateMonitorConfig
|
29
|
-
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
|
30
|
-
|
31
|
-
# Submodule exports
|
5
|
+
from nshtrainer.callbacks.lr_monitor import CallbackConfigBase as CallbackConfigBase
|
6
|
+
from nshtrainer.callbacks.lr_monitor import (
|
7
|
+
LearningRateMonitorConfig as LearningRateMonitorConfig,
|
8
|
+
)
|
@@ -2,32 +2,7 @@ from __future__ import annotations
|
|
2
2
|
|
3
3
|
__codegen__ = True
|
4
4
|
|
5
|
-
from
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
if TYPE_CHECKING:
|
10
|
-
from nshtrainer.callbacks.norm_logging import (
|
11
|
-
CallbackConfigBase as CallbackConfigBase,
|
12
|
-
)
|
13
|
-
from nshtrainer.callbacks.norm_logging import (
|
14
|
-
NormLoggingCallbackConfig as NormLoggingCallbackConfig,
|
15
|
-
)
|
16
|
-
else:
|
17
|
-
|
18
|
-
def __getattr__(name):
|
19
|
-
import importlib
|
20
|
-
|
21
|
-
if name in globals():
|
22
|
-
return globals()[name]
|
23
|
-
if name == "CallbackConfigBase":
|
24
|
-
return importlib.import_module(
|
25
|
-
"nshtrainer.callbacks.norm_logging"
|
26
|
-
).CallbackConfigBase
|
27
|
-
if name == "NormLoggingCallbackConfig":
|
28
|
-
return importlib.import_module(
|
29
|
-
"nshtrainer.callbacks.norm_logging"
|
30
|
-
).NormLoggingCallbackConfig
|
31
|
-
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
|
32
|
-
|
33
|
-
# Submodule exports
|
5
|
+
from nshtrainer.callbacks.norm_logging import CallbackConfigBase as CallbackConfigBase
|
6
|
+
from nshtrainer.callbacks.norm_logging import (
|
7
|
+
NormLoggingCallbackConfig as NormLoggingCallbackConfig,
|
8
|
+
)
|
@@ -2,32 +2,7 @@ from __future__ import annotations
|
|
2
2
|
|
3
3
|
__codegen__ = True
|
4
4
|
|
5
|
-
from
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
if TYPE_CHECKING:
|
10
|
-
from nshtrainer.callbacks.print_table import (
|
11
|
-
CallbackConfigBase as CallbackConfigBase,
|
12
|
-
)
|
13
|
-
from nshtrainer.callbacks.print_table import (
|
14
|
-
PrintTableMetricsCallbackConfig as PrintTableMetricsCallbackConfig,
|
15
|
-
)
|
16
|
-
else:
|
17
|
-
|
18
|
-
def __getattr__(name):
|
19
|
-
import importlib
|
20
|
-
|
21
|
-
if name in globals():
|
22
|
-
return globals()[name]
|
23
|
-
if name == "CallbackConfigBase":
|
24
|
-
return importlib.import_module(
|
25
|
-
"nshtrainer.callbacks.print_table"
|
26
|
-
).CallbackConfigBase
|
27
|
-
if name == "PrintTableMetricsCallbackConfig":
|
28
|
-
return importlib.import_module(
|
29
|
-
"nshtrainer.callbacks.print_table"
|
30
|
-
).PrintTableMetricsCallbackConfig
|
31
|
-
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
|
32
|
-
|
33
|
-
# Submodule exports
|
5
|
+
from nshtrainer.callbacks.print_table import CallbackConfigBase as CallbackConfigBase
|
6
|
+
from nshtrainer.callbacks.print_table import (
|
7
|
+
PrintTableMetricsCallbackConfig as PrintTableMetricsCallbackConfig,
|
8
|
+
)
|
@@ -2,32 +2,9 @@ from __future__ import annotations
|
|
2
2
|
|
3
3
|
__codegen__ = True
|
4
4
|
|
5
|
-
from
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
CallbackConfigBase as CallbackConfigBase,
|
12
|
-
)
|
13
|
-
from nshtrainer.callbacks.rlp_sanity_checks import (
|
14
|
-
RLPSanityChecksCallbackConfig as RLPSanityChecksCallbackConfig,
|
15
|
-
)
|
16
|
-
else:
|
17
|
-
|
18
|
-
def __getattr__(name):
|
19
|
-
import importlib
|
20
|
-
|
21
|
-
if name in globals():
|
22
|
-
return globals()[name]
|
23
|
-
if name == "CallbackConfigBase":
|
24
|
-
return importlib.import_module(
|
25
|
-
"nshtrainer.callbacks.rlp_sanity_checks"
|
26
|
-
).CallbackConfigBase
|
27
|
-
if name == "RLPSanityChecksCallbackConfig":
|
28
|
-
return importlib.import_module(
|
29
|
-
"nshtrainer.callbacks.rlp_sanity_checks"
|
30
|
-
).RLPSanityChecksCallbackConfig
|
31
|
-
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
|
32
|
-
|
33
|
-
# Submodule exports
|
5
|
+
from nshtrainer.callbacks.rlp_sanity_checks import (
|
6
|
+
CallbackConfigBase as CallbackConfigBase,
|
7
|
+
)
|
8
|
+
from nshtrainer.callbacks.rlp_sanity_checks import (
|
9
|
+
RLPSanityChecksCallbackConfig as RLPSanityChecksCallbackConfig,
|
10
|
+
)
|
@@ -2,32 +2,9 @@ from __future__ import annotations
|
|
2
2
|
|
3
3
|
__codegen__ = True
|
4
4
|
|
5
|
-
from
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
CallbackConfigBase as CallbackConfigBase,
|
12
|
-
)
|
13
|
-
from nshtrainer.callbacks.shared_parameters import (
|
14
|
-
SharedParametersCallbackConfig as SharedParametersCallbackConfig,
|
15
|
-
)
|
16
|
-
else:
|
17
|
-
|
18
|
-
def __getattr__(name):
|
19
|
-
import importlib
|
20
|
-
|
21
|
-
if name in globals():
|
22
|
-
return globals()[name]
|
23
|
-
if name == "CallbackConfigBase":
|
24
|
-
return importlib.import_module(
|
25
|
-
"nshtrainer.callbacks.shared_parameters"
|
26
|
-
).CallbackConfigBase
|
27
|
-
if name == "SharedParametersCallbackConfig":
|
28
|
-
return importlib.import_module(
|
29
|
-
"nshtrainer.callbacks.shared_parameters"
|
30
|
-
).SharedParametersCallbackConfig
|
31
|
-
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
|
32
|
-
|
33
|
-
# Submodule exports
|
5
|
+
from nshtrainer.callbacks.shared_parameters import (
|
6
|
+
CallbackConfigBase as CallbackConfigBase,
|
7
|
+
)
|
8
|
+
from nshtrainer.callbacks.shared_parameters import (
|
9
|
+
SharedParametersCallbackConfig as SharedParametersCallbackConfig,
|
10
|
+
)
|
@@ -2,30 +2,7 @@ from __future__ import annotations
|
|
2
2
|
|
3
3
|
__codegen__ = True
|
4
4
|
|
5
|
-
from
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
if TYPE_CHECKING:
|
10
|
-
from nshtrainer.callbacks.timer import CallbackConfigBase as CallbackConfigBase
|
11
|
-
from nshtrainer.callbacks.timer import (
|
12
|
-
EpochTimerCallbackConfig as EpochTimerCallbackConfig,
|
13
|
-
)
|
14
|
-
else:
|
15
|
-
|
16
|
-
def __getattr__(name):
|
17
|
-
import importlib
|
18
|
-
|
19
|
-
if name in globals():
|
20
|
-
return globals()[name]
|
21
|
-
if name == "CallbackConfigBase":
|
22
|
-
return importlib.import_module(
|
23
|
-
"nshtrainer.callbacks.timer"
|
24
|
-
).CallbackConfigBase
|
25
|
-
if name == "EpochTimerCallbackConfig":
|
26
|
-
return importlib.import_module(
|
27
|
-
"nshtrainer.callbacks.timer"
|
28
|
-
).EpochTimerCallbackConfig
|
29
|
-
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
|
30
|
-
|
31
|
-
# Submodule exports
|
5
|
+
from nshtrainer.callbacks.timer import CallbackConfigBase as CallbackConfigBase
|
6
|
+
from nshtrainer.callbacks.timer import (
|
7
|
+
EpochTimerCallbackConfig as EpochTimerCallbackConfig,
|
8
|
+
)
|
@@ -2,32 +2,9 @@ from __future__ import annotations
|
|
2
2
|
|
3
3
|
__codegen__ = True
|
4
4
|
|
5
|
-
from
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
CallbackConfigBase as CallbackConfigBase,
|
12
|
-
)
|
13
|
-
from nshtrainer.callbacks.wandb_upload_code import (
|
14
|
-
WandbUploadCodeCallbackConfig as WandbUploadCodeCallbackConfig,
|
15
|
-
)
|
16
|
-
else:
|
17
|
-
|
18
|
-
def __getattr__(name):
|
19
|
-
import importlib
|
20
|
-
|
21
|
-
if name in globals():
|
22
|
-
return globals()[name]
|
23
|
-
if name == "CallbackConfigBase":
|
24
|
-
return importlib.import_module(
|
25
|
-
"nshtrainer.callbacks.wandb_upload_code"
|
26
|
-
).CallbackConfigBase
|
27
|
-
if name == "WandbUploadCodeCallbackConfig":
|
28
|
-
return importlib.import_module(
|
29
|
-
"nshtrainer.callbacks.wandb_upload_code"
|
30
|
-
).WandbUploadCodeCallbackConfig
|
31
|
-
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
|
32
|
-
|
33
|
-
# Submodule exports
|
5
|
+
from nshtrainer.callbacks.wandb_upload_code import (
|
6
|
+
CallbackConfigBase as CallbackConfigBase,
|
7
|
+
)
|
8
|
+
from nshtrainer.callbacks.wandb_upload_code import (
|
9
|
+
WandbUploadCodeCallbackConfig as WandbUploadCodeCallbackConfig,
|
10
|
+
)
|
@@ -2,32 +2,7 @@ from __future__ import annotations
|
|
2
2
|
|
3
3
|
__codegen__ = True
|
4
4
|
|
5
|
-
from
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
if TYPE_CHECKING:
|
10
|
-
from nshtrainer.callbacks.wandb_watch import (
|
11
|
-
CallbackConfigBase as CallbackConfigBase,
|
12
|
-
)
|
13
|
-
from nshtrainer.callbacks.wandb_watch import (
|
14
|
-
WandbWatchCallbackConfig as WandbWatchCallbackConfig,
|
15
|
-
)
|
16
|
-
else:
|
17
|
-
|
18
|
-
def __getattr__(name):
|
19
|
-
import importlib
|
20
|
-
|
21
|
-
if name in globals():
|
22
|
-
return globals()[name]
|
23
|
-
if name == "CallbackConfigBase":
|
24
|
-
return importlib.import_module(
|
25
|
-
"nshtrainer.callbacks.wandb_watch"
|
26
|
-
).CallbackConfigBase
|
27
|
-
if name == "WandbWatchCallbackConfig":
|
28
|
-
return importlib.import_module(
|
29
|
-
"nshtrainer.callbacks.wandb_watch"
|
30
|
-
).WandbWatchCallbackConfig
|
31
|
-
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
|
32
|
-
|
33
|
-
# Submodule exports
|
5
|
+
from nshtrainer.callbacks.wandb_watch import CallbackConfigBase as CallbackConfigBase
|
6
|
+
from nshtrainer.callbacks.wandb_watch import (
|
7
|
+
WandbWatchCallbackConfig as WandbWatchCallbackConfig,
|
8
|
+
)
|
@@ -2,59 +2,20 @@ from __future__ import annotations
|
|
2
2
|
|
3
3
|
__codegen__ = True
|
4
4
|
|
5
|
-
from
|
5
|
+
from nshtrainer.loggers import ActSaveLoggerConfig as ActSaveLoggerConfig
|
6
|
+
from nshtrainer.loggers import BaseLoggerConfig as BaseLoggerConfig
|
7
|
+
from nshtrainer.loggers import CSVLoggerConfig as CSVLoggerConfig
|
8
|
+
from nshtrainer.loggers import LoggerConfig as LoggerConfig
|
9
|
+
from nshtrainer.loggers import TensorboardLoggerConfig as TensorboardLoggerConfig
|
10
|
+
from nshtrainer.loggers import WandbLoggerConfig as WandbLoggerConfig
|
11
|
+
from nshtrainer.loggers.wandb import CallbackConfigBase as CallbackConfigBase
|
12
|
+
from nshtrainer.loggers.wandb import (
|
13
|
+
WandbUploadCodeCallbackConfig as WandbUploadCodeCallbackConfig,
|
14
|
+
)
|
15
|
+
from nshtrainer.loggers.wandb import (
|
16
|
+
WandbWatchCallbackConfig as WandbWatchCallbackConfig,
|
17
|
+
)
|
6
18
|
|
7
|
-
# Config/alias imports
|
8
|
-
|
9
|
-
if TYPE_CHECKING:
|
10
|
-
from nshtrainer.loggers import ActSaveLoggerConfig as ActSaveLoggerConfig
|
11
|
-
from nshtrainer.loggers import BaseLoggerConfig as BaseLoggerConfig
|
12
|
-
from nshtrainer.loggers import CSVLoggerConfig as CSVLoggerConfig
|
13
|
-
from nshtrainer.loggers import LoggerConfig as LoggerConfig
|
14
|
-
from nshtrainer.loggers import TensorboardLoggerConfig as TensorboardLoggerConfig
|
15
|
-
from nshtrainer.loggers import WandbLoggerConfig as WandbLoggerConfig
|
16
|
-
from nshtrainer.loggers.wandb import CallbackConfigBase as CallbackConfigBase
|
17
|
-
from nshtrainer.loggers.wandb import (
|
18
|
-
WandbUploadCodeCallbackConfig as WandbUploadCodeCallbackConfig,
|
19
|
-
)
|
20
|
-
from nshtrainer.loggers.wandb import (
|
21
|
-
WandbWatchCallbackConfig as WandbWatchCallbackConfig,
|
22
|
-
)
|
23
|
-
else:
|
24
|
-
|
25
|
-
def __getattr__(name):
|
26
|
-
import importlib
|
27
|
-
|
28
|
-
if name in globals():
|
29
|
-
return globals()[name]
|
30
|
-
if name == "ActSaveLoggerConfig":
|
31
|
-
return importlib.import_module("nshtrainer.loggers").ActSaveLoggerConfig
|
32
|
-
if name == "BaseLoggerConfig":
|
33
|
-
return importlib.import_module("nshtrainer.loggers").BaseLoggerConfig
|
34
|
-
if name == "CSVLoggerConfig":
|
35
|
-
return importlib.import_module("nshtrainer.loggers").CSVLoggerConfig
|
36
|
-
if name == "CallbackConfigBase":
|
37
|
-
return importlib.import_module(
|
38
|
-
"nshtrainer.loggers.wandb"
|
39
|
-
).CallbackConfigBase
|
40
|
-
if name == "TensorboardLoggerConfig":
|
41
|
-
return importlib.import_module("nshtrainer.loggers").TensorboardLoggerConfig
|
42
|
-
if name == "WandbLoggerConfig":
|
43
|
-
return importlib.import_module("nshtrainer.loggers").WandbLoggerConfig
|
44
|
-
if name == "WandbUploadCodeCallbackConfig":
|
45
|
-
return importlib.import_module(
|
46
|
-
"nshtrainer.loggers.wandb"
|
47
|
-
).WandbUploadCodeCallbackConfig
|
48
|
-
if name == "WandbWatchCallbackConfig":
|
49
|
-
return importlib.import_module(
|
50
|
-
"nshtrainer.loggers.wandb"
|
51
|
-
).WandbWatchCallbackConfig
|
52
|
-
if name == "LoggerConfig":
|
53
|
-
return importlib.import_module("nshtrainer.loggers").LoggerConfig
|
54
|
-
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
|
55
|
-
|
56
|
-
|
57
|
-
# Submodule exports
|
58
19
|
from . import _base as _base
|
59
20
|
from . import actsave as actsave
|
60
21
|
from . import csv as csv
|
@@ -2,21 +2,4 @@ from __future__ import annotations
|
|
2
2
|
|
3
3
|
__codegen__ = True
|
4
4
|
|
5
|
-
from
|
6
|
-
|
7
|
-
# Config/alias imports
|
8
|
-
|
9
|
-
if TYPE_CHECKING:
|
10
|
-
from nshtrainer.loggers._base import BaseLoggerConfig as BaseLoggerConfig
|
11
|
-
else:
|
12
|
-
|
13
|
-
def __getattr__(name):
|
14
|
-
import importlib
|
15
|
-
|
16
|
-
if name in globals():
|
17
|
-
return globals()[name]
|
18
|
-
if name == "BaseLoggerConfig":
|
19
|
-
return importlib.import_module("nshtrainer.loggers._base").BaseLoggerConfig
|
20
|
-
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
|
21
|
-
|
22
|
-
# Submodule exports
|
5
|
+
from nshtrainer.loggers._base import BaseLoggerConfig as BaseLoggerConfig
|
@@ -2,28 +2,5 @@ from __future__ import annotations
|
|
2
2
|
|
3
3
|
__codegen__ = True
|
4
4
|
|
5
|
-
from
|
6
|
-
|
7
|
-
# Config/alias imports
|
8
|
-
|
9
|
-
if TYPE_CHECKING:
|
10
|
-
from nshtrainer.loggers.actsave import ActSaveLoggerConfig as ActSaveLoggerConfig
|
11
|
-
from nshtrainer.loggers.actsave import BaseLoggerConfig as BaseLoggerConfig
|
12
|
-
else:
|
13
|
-
|
14
|
-
def __getattr__(name):
|
15
|
-
import importlib
|
16
|
-
|
17
|
-
if name in globals():
|
18
|
-
return globals()[name]
|
19
|
-
if name == "ActSaveLoggerConfig":
|
20
|
-
return importlib.import_module(
|
21
|
-
"nshtrainer.loggers.actsave"
|
22
|
-
).ActSaveLoggerConfig
|
23
|
-
if name == "BaseLoggerConfig":
|
24
|
-
return importlib.import_module(
|
25
|
-
"nshtrainer.loggers.actsave"
|
26
|
-
).BaseLoggerConfig
|
27
|
-
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
|
28
|
-
|
29
|
-
# Submodule exports
|
5
|
+
from nshtrainer.loggers.actsave import ActSaveLoggerConfig as ActSaveLoggerConfig
|
6
|
+
from nshtrainer.loggers.actsave import BaseLoggerConfig as BaseLoggerConfig
|
@@ -2,24 +2,5 @@ from __future__ import annotations
|
|
2
2
|
|
3
3
|
__codegen__ = True
|
4
4
|
|
5
|
-
from
|
6
|
-
|
7
|
-
# Config/alias imports
|
8
|
-
|
9
|
-
if TYPE_CHECKING:
|
10
|
-
from nshtrainer.loggers.csv import BaseLoggerConfig as BaseLoggerConfig
|
11
|
-
from nshtrainer.loggers.csv import CSVLoggerConfig as CSVLoggerConfig
|
12
|
-
else:
|
13
|
-
|
14
|
-
def __getattr__(name):
|
15
|
-
import importlib
|
16
|
-
|
17
|
-
if name in globals():
|
18
|
-
return globals()[name]
|
19
|
-
if name == "BaseLoggerConfig":
|
20
|
-
return importlib.import_module("nshtrainer.loggers.csv").BaseLoggerConfig
|
21
|
-
if name == "CSVLoggerConfig":
|
22
|
-
return importlib.import_module("nshtrainer.loggers.csv").CSVLoggerConfig
|
23
|
-
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
|
24
|
-
|
25
|
-
# Submodule exports
|
5
|
+
from nshtrainer.loggers.csv import BaseLoggerConfig as BaseLoggerConfig
|
6
|
+
from nshtrainer.loggers.csv import CSVLoggerConfig as CSVLoggerConfig
|