Skip to content

Commit

Permalink
Merge pull request #103 from wcwitt/develop
Browse files Browse the repository at this point in the history
hopefully limit unnecessary memory use.
  • Loading branch information
ilyes319 authored Apr 20, 2023
2 parents 7842847 + 2f891cf commit 963903f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mace/calculators/lammps_mace.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ def __init__(self, model):
self.register_buffer("atomic_numbers", model.atomic_numbers)
self.register_buffer("r_max", model.r_max)
self.register_buffer("num_interactions", model.num_interactions)
for param in self.model.parameters():
param.requires_grad = False

def forward(
self,
Expand Down

0 comments on commit 963903f

Please sign in to comment.