Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
e864f9c5
Unverified
Commit
e864f9c5
authored
Oct 16, 2023
by
Hongzhi (Steve), Chen
Committed by
GitHub
Oct 16, 2023
Browse files
[Graphbolt] Update walkthrough Tutorial. (#6450)
parent
a4ccc3e9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
notebooks/graphbolt/walkthrough.ipynb
notebooks/graphbolt/walkthrough.ipynb
+6
-3
No files found.
notebooks/graphbolt/walkthrough.ipynb
View file @
e864f9c5
...
...
@@ -9,7 +9,7 @@
],
"gpuType": "T4",
"private_outputs": true,
"authorship_tag": "ABX9Ty
Pvfttw1smlh4C4S7WfGkTB
"
"authorship_tag": "ABX9Ty
OCdFtYQweXnIR1/5oWDSGq
"
},
"kernelspec": {
"name": "python3",
...
...
@@ -48,7 +48,10 @@
"os.environ['TORCH'] = torch.__version__\n",
"os.environ['DGLBACKEND'] = \"pytorch\"\n",
"\n",
"!pip install --pre dgl -f https://data.dgl.ai/wheels-test/cu118/repo.html > /dev/null\n",
"# Uncomment below to install required packages. If the CUDA version is not 11.8,\n",
"# check the https://www.dgl.ai/pages/start.html to find the supported CUDA\n",
"# version and corresponding command to install DGL.\n",
"# !pip install --pre dgl -f https://data.dgl.ai/wheels-test/cu118/repo.html > /dev/null\n",
"\n",
"try:\n",
" import dgl.graphbolt as gb\n",
...
...
@@ -81,7 +84,7 @@
" [4, 9], [4, 9], [5, 9], [9, 9], [5, 9], [9, 9], [7, 9]]\n",
")\n",
"item_set = gb.ItemSet(node_pairs, names=\"node_pairs\")\n",
"print(item_set)"
"print(
list(
item_set)
)
"
],
"metadata": {
"id": "g73ZAbMQsSgV"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment