Skip to content

Commit

Permalink
Hotfix of the PET device
Browse files Browse the repository at this point in the history
  • Loading branch information
abmazitov committed Nov 26, 2024
1 parent 63a3ddb commit 6b330b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/metatrain/experimental/pet/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,9 @@ def train(
else:
pet_model.hypers.TARGET_TYPE = "structural"
pet_model.TARGET_TYPE = "structural"
pet_model = pet_model.to(device=device, dtype=dtype)
else:
pet_model = PET(ARCHITECTURAL_HYPERS, 0.0, len(all_species))
pet_model = pet_model.to(device=device, dtype=dtype)
num_params = sum([p.numel() for p in pet_model.parameters()])
logging.info(f"Number of parameters: {num_params}")

Expand Down

0 comments on commit 6b330b4

Please sign in to comment.