-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tutorial: update Building a Graph Convolutional Network tutorial #4060
Conversation
updates * support bias in GCN layer * download pretrained gcn model * verify model accuracy * use time_evaluator to measure runtime
Adding @yuluny2 to also review the PR. |
tutorials/frontend/build_gcn.py
Outdated
|
||
# Evaluate the runtime | ||
print("Evaluate inference time cost...") | ||
timer = m.module.time_evaluator("run", ctx, number=1, repeat=10) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Increase the number
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @cylinbao for these changes. Can we run inside of this tutorial the DGL MxNet/Pytorch baseline and compare the results as well as the runtimes?
Also can we control GPU target with a flag to show both modes of operation?
lgtm |
Thank @tmoreau89 for the comments. |
@tmoreau89 |
@cylinbao better to change the previous performance claim |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@cylinbao thanks. If you can just submit a correctness check that will ensure that our computation is correct. Let's leave GPU support and performance comparison to a future PR. |
@tmoreau89 @ZihengJiang @yuluny2 |
Thanks looks good, please address the comments above. |
I think all the comments have been addressed! |
Thanks, indeed they've been addressed (I resolved them). Will wait on checks to pass before merging it in! |
Looks like the CIs failed, can you investigate @cylinbao? |
It seems like the DGL version is too old in the CLs. |
Add one commit to handle the DGL version issue in the code. |
Thank you for the update @cylinbao ! |
…che#4060) * update build_gcn.py tutorial updates * support bias in GCN layer * download pretrained gcn model * verify model accuracy * use time_evaluator to measure runtime * fix adding bias in gcn layer * remove printing output * fix small bug * add DGL-PyTorch comparison into the build_gcn tutorial * add accuracy testing * adjust import order * handle different dgl versions * update number for dgl version checking
…che#4060) * update build_gcn.py tutorial updates * support bias in GCN layer * download pretrained gcn model * verify model accuracy * use time_evaluator to measure runtime * fix adding bias in gcn layer * remove printing output * fix small bug * add DGL-PyTorch comparison into the build_gcn tutorial * add accuracy testing * adjust import order * handle different dgl versions * update number for dgl version checking
Few updates on the Building a Graph Convolutional Network tutorial
Please review
@ZihengJiang, @tmoreau89