"docs/vscode:/vscode.git/clone" did not exist on "27b752bcf16708dc062a1d69325a07e4560aa75a"
Unverified Commit 0623f08e authored by Clémentine Fourrier's avatar Clémentine Fourrier Committed by GitHub
Browse files

Update collating_graphormer.py (#23862)

parent 62ba64b9
......@@ -129,6 +129,6 @@ class GraphormerDataCollator:
else: # binary classification
batch["labels"] = torch.from_numpy(np.concatenate([i["labels"] for i in features]))
else: # multi task classification, left to float to keep the NaNs
batch["labels"] = torch.from_numpy(np.stack([i["labels"] for i in features], dim=0))
batch["labels"] = torch.from_numpy(np.stack([i["labels"] for i in features], axis=0))
return batch
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment