Skip to content

Commit ceddb9b

Browse files
committed
Merge branch 'main' of github.com:nimashoghi/MatterTune
2 parents 6156f86 + 8645d9e commit ceddb9b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/mattertune/backbones/orb/model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def requires_disabled_inference_mode(self):
105105
def _create_output_head(self, prop: props.PropertyConfig, pretrained_model):
106106
with optional_import_error_message("orb_models"):
107107
from orb_models.forcefield.forcefield_heads import (
108-
EnergyHeadPoolAfter,
108+
EnergyHead,
109109
ForceHead,
110110
StressHead,
111111
GraphHead,
@@ -268,7 +268,7 @@ def model_forward_context(self, data, mode: str):
268268

269269

270270
@override
271-
def model_forward(self, batch, mode: str, using_partition: bool = False):
271+
def model_forward(self, batch, mode: str):
272272
with optional_import_error_message("orb_models"):
273273
from orb_models.forcefield.forcefield_utils import compute_gradient_forces_and_stress
274274

@@ -451,4 +451,4 @@ def create_normalization_context_from_batch(self, batch):
451451
if compositions is None:
452452
raise ValueError("No composition found in the batch.")
453453
compositions = compositions[:, 1:] # Remove the zeroth element
454-
return NormalizationContext(num_atoms=num_atoms, compositions=compositions)
454+
return NormalizationContext(num_atoms=num_atoms, compositions=compositions)

0 commit comments

Comments
 (0)