Skip to content

Commit

Permalink
apply flax_module to energy model
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz committed Oct 21, 2024
1 parent fa9a000 commit 752d1e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deepmd/jax/model/ener_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@
from deepmd.jax.atomic_model.dp_atomic_model import (
DPAtomicModel,
)
from deepmd.jax.common import (
flax_module,
)
from deepmd.jax.model.base_model import (
BaseModel,
)


@BaseModel.register("ener")
@flax_module
class EnergyModel(EnergyModelDP):
def __setattr__(self, name: str, value: Any) -> None:
if name == "atomic_model":
Expand Down

0 comments on commit 752d1e7

Please sign in to comment.