Skip to content

Commit ca295ad

Browse files
authored
Update deepmd/dpmodel/utils/serialization.py
Signed-off-by: Jinzhe Zeng <[email protected]>
1 parent 1548bab commit ca295ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deepmd/dpmodel/utils/serialization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def size(self) -> int:
234234
"""
235235
total_size = 0
236236

237-
def count_variables(x: Any) -> None:
237+
def count_variables(x: Any) -> Any:
238238
nonlocal total_size
239239
if isinstance(x, np.ndarray):
240240
total_size += x.size

0 commit comments

Comments
 (0)