Skip to content

Commit

Permalink
+
Browse files Browse the repository at this point in the history
  • Loading branch information
LukyanovKirillML committed Jul 18, 2024
1 parent 97c0185 commit d10f110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models_builder/gnn_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ def train_1_step(self, gen_dataset):
self.gnn.eval()
return loss.cpu().detach().numpy().tolist()

def train_on_batch(self, batch, task_type):
def train_on_batch(self, batch, task_type=None):
loss = None
if task_type == "single-graph":
self.optimizer.zero_grad()
Expand Down

0 comments on commit d10f110

Please sign in to comment.