Skip to content

Commit

Permalink
fix: tf register
Browse files Browse the repository at this point in the history
  • Loading branch information
anyangml committed Apr 15, 2024
1 parent 752132d commit ff30173
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions deepmd/tf/model/tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
)


@StandardModel.register("dipole")
@StandardModel.register("polar")
class TensorModel(StandardModel):
"""Tensor model.
Expand Down Expand Up @@ -243,12 +241,12 @@ class WFCModel(TensorModel):
def __init__(self, *args, **kwargs) -> None:
TensorModel.__init__(self, "wfc", *args, **kwargs)


@StandardModel.register("dipole")
class DipoleModel(TensorModel):
def __init__(self, *args, **kwargs) -> None:
TensorModel.__init__(self, "dipole", *args, **kwargs)


@StandardModel.register("polar")
class PolarModel(TensorModel):
def __init__(self, *args, **kwargs) -> None:
TensorModel.__init__(self, "polar", *args, **kwargs)
Expand Down

0 comments on commit ff30173

Please sign in to comment.