Skip to content

Commit 28e6fdd

Browse files
committed
fix ut
1 parent e5f7ce5 commit 28e6fdd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

deepmd/pd/loss/ener.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ def deserialize(cls, data: dict) -> "TaskLoss":
592592
The deserialized loss module
593593
"""
594594
data = data.copy()
595-
check_version_compatibility(data.pop("@version"), 2, 1)
595+
check_version_compatibility(data.pop("@version"), 3, 1)
596596
data.pop("@class")
597597
return cls(**data)
598598

deepmd/tf/loss/ener.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ def deserialize(cls, data: dict, suffix: str = "") -> "Loss":
571571
The deserialized loss module
572572
"""
573573
data = data.copy()
574-
check_version_compatibility(data.pop("@version"), 2, 1)
574+
check_version_compatibility(data.pop("@version"), 3, 1)
575575
data.pop("@class")
576576
return cls(**data)
577577

0 commit comments

Comments
 (0)