Skip to content

Commit b9a8dd1

Browse files
committed
Skip logging before initializer for compatibility of imag and haar.
PR: https://github.com/USTC-KnowledgeComputingLab/qmb-dev/pull/72/files Signed-off-by: Hao Zhang <[email protected]>
2 parents 1a56336 + cffba20 commit b9a8dd1

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

qmb/haar.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -523,18 +523,4 @@ def closure() -> torch.Tensor:
523523

524524

525525
subcommand_dict["haar"] = HaarConfig
526-
527-
528-
class ImagConfig(HaarConfig):
529-
"""
530-
Deprecated, use "haar" instead.
531-
"""
532-
533-
# pylint: disable=too-few-public-methods
534-
535-
def __post_init__(self) -> None:
536-
logging.warning("The 'imag' subcommand is deprecated, please use 'haar' instead.")
537-
super().__post_init__()
538-
539-
540-
subcommand_dict["imag"] = ImagConfig
526+
subcommand_dict["imag"] = HaarConfig

0 commit comments

Comments
 (0)