Skip to content

Commit

Permalink
bug fix matrix dimensions increasing
Browse files Browse the repository at this point in the history
  • Loading branch information
Aske-Rosted committed Jan 22, 2024
1 parent 93038c6 commit 8718ff8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/graphnet/deployment/i3modules/graphnet_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,9 @@ def _inference(self, data: Data) -> np.ndarray:
len(task_predictions) == 1
), f"""This method assumes a single task. \n
Got {len(task_predictions)} tasks."""
return self.model(data)[0].detach().numpy()
return (
task_predictions[0].detach().numpy()
) # self.model(data)[0].detach().numpy()


class I3PulseCleanerModule(I3InferenceModule):
Expand Down

0 comments on commit 8718ff8

Please sign in to comment.