We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac1a4dd commit cce3699Copy full SHA for cce3699
1 file changed
src/fairchem/core/units/mlip_unit/predict.py
@@ -250,12 +250,6 @@ def predict(
250
self.model = torch.compile(self.model, dynamic=True)
251
self.lazy_model_intialized = True
252
253
- if self.inference_mode.external_graph_gen and data.edge_index.shape[1] == 0:
254
- raise ValueError(
255
- "Cannot run inference with external graph generation on empty edge index. "
256
- "Please ensure the input data has valid edges."
257
- )
258
-
259
# this needs to be .clone() to avoid issues with graph parallel modifying this data with MOLE
260
data_device = data.to(self.device).clone()
261
0 commit comments