mirror of
https://github.com/dmlc/dgl.git
synced 2026-06-03 19:34:33 +08:00
[Graphbolt] Fix link_prediction example (#6397)
Co-authored-by: Hongzhi (Steve), Chen <chenhongzhi.nkcs@gmail.com>
This commit is contained in:
committed by
GitHub
parent
cc079e1c44
commit
241760a5ef
@@ -36,6 +36,7 @@ Contributors
|
||||
* [Michal Szarmach](https://github.com/mszarma) from Intel
|
||||
* [Izabela Mazur](https://github.com/IzabelaMazur) from Intel
|
||||
* [Sanchit Misra](https://github.com/sanchit-misra) from Intel
|
||||
* [Andrzej Kotlowski](https://github.com/anko-intel) from Intel
|
||||
* [Sheng Zha](https://github.com/szha) from AWS
|
||||
* [Yifei Ma](https://github.com/yifeim) from AWS
|
||||
* [Yizhi Liu](https://github.com/yzhliu) from AWS
|
||||
|
||||
@@ -169,7 +169,7 @@ def create_dataloader(args, graph, features, itemset, is_train=True):
|
||||
|
||||
############################################################################
|
||||
# [Step-4]:
|
||||
# gb.to_dgl()
|
||||
# datapipe.to_dgl()
|
||||
# [Input]:
|
||||
# 'datapipe': The previous datapipe object.
|
||||
# [Output]:
|
||||
@@ -177,7 +177,7 @@ def create_dataloader(args, graph, features, itemset, is_train=True):
|
||||
# [Role]:
|
||||
# Convert a mini-batch to dgl-minibatch.
|
||||
############################################################################
|
||||
datapipe = gb.to_dgl()
|
||||
datapipe = datapipe.to_dgl()
|
||||
|
||||
############################################################################
|
||||
# [Input]:
|
||||
|
||||
Reference in New Issue
Block a user