Skip to content

Commit

Permalink
fix super
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz authored Jan 8, 2024
1 parent dbd86f8 commit 8550b68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deepmd_utils/model_format/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def __init__(
).serialize()
)
i_in = i_ot
super(EmbeddingNet, self).__init__(layers)
super().__init__(layers)
self.in_dim = in_dim
self.neuron = neuron
self.activation_function = activation_function
Expand Down Expand Up @@ -387,5 +387,5 @@ def deserialize(cls, data: dict) -> "EmbeddingNet":
"""
layers = data.pop("layers")
obj = cls(**data)
super().__init__(layers)
super(EmbeddingNet, obj).__init__(layers)
return obj

0 comments on commit 8550b68

Please sign in to comment.