Skip to content

Commit

Permalink
update the model with the state
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz authored Oct 23, 2024
1 parent 536bbcd commit f90fc52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions deepmd/jax/utils/serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def serialize_from_file(model_file: str) -> dict:
state = data.state
model_def_script = data.model_def_script
model = get_model(model_def_script)
nnx.update(model, state)
model_dict = model.serialize()
data = {
"backend": "JAX",
Expand Down

0 comments on commit f90fc52

Please sign in to comment.