Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/fairchem/core/units/mlip_unit/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,6 @@ def predict(
self.model = torch.compile(self.model, dynamic=True)
self.lazy_model_intialized = True

if self.inference_mode.external_graph_gen and data.edge_index.shape[1] == 0:
raise ValueError(
"Cannot run inference with external graph generation on empty edge index. "
"Please ensure the input data has valid edges."
)

# this needs to be .clone() to avoid issues with graph parallel modifying this data with MOLE
data_device = data.to(self.device).clone()

Expand Down
Loading