"git@developer.sourcefind.cn:sugon_wxj/megatron-lm.git" did not exist on "4bea4e769ff195b6fa5adf9b368587acd67fc847"
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