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
b9c8d458
Unverified
Commit
b9c8d458
authored
Jan 17, 2023
by
Hongzhi (Steve), Chen
Committed by
GitHub
Jan 17, 2023
Browse files
move to cpu (#5187)
Co-authored-by:
Steve
<
ubuntu@ip-172-31-34-29.ap-northeast-1.compute.internal
>
parent
f554bc48
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
notebooks/sparse/quickstart.ipynb
notebooks/sparse/quickstart.ipynb
+1
-1
No files found.
notebooks/sparse/quickstart.ipynb
View file @
b9c8d458
...
...
@@ -329,7 +329,7 @@
"val = torch.tensor([1., 2., 3., 4.])\n",
"A = dglsp.from_coo(row, col, val)\n",
"\n",
"B = A.to(device='cu
da:0
', dtype=torch.int32)\n",
"B = A.to(device='c
p
u', dtype=torch.int32)\n",
"print(f\"Device sparse matrix is stored on: {B.device}\")\n",
"print(f\"Datatype of sparse matrix: {B.dtype}\")"
],
...
...
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