Skip to content

Commit

Permalink
fix #8120
Browse files Browse the repository at this point in the history
Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
  • Loading branch information
KumoLiu committed Sep 30, 2024
1 parent 8546be0 commit 58da97c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions monai/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from .deviceconfig import (
USE_COMPILED,
USE_META_DICT,
IgniteInfo,
get_config_values,
get_gpu_info,
get_optional_config_values,
Expand Down
11 changes: 11 additions & 0 deletions monai/config/deviceconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
import torch

import monai
from monai.utils.deprecate_utils import deprecated
from monai.utils.enums import IgniteInfo as NewIgniteInfo
from monai.utils.module import OptionalImportError, get_package_version, optional_import

try:
Expand Down Expand Up @@ -260,5 +262,14 @@ def print_debug_info(file: TextIO = sys.stdout) -> None:
print_gpu_info(file)


@deprecated(since=1.4, removed=1.6, msg_suffix="Please use `monai.utils.enums.IgniteInfo` instead.")
class IgniteInfo:
"""
IgniteInfo enum is moved to `monai.utils.enums.IgniteInfo`.
"""

OPT_IMPORT_VERSION = NewIgniteInfo.OPT_IMPORT_VERSION


if __name__ == "__main__":
print_debug_info()

0 comments on commit 58da97c

Please sign in to comment.