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
pyg_autoscale
Commits
be696d2c
Commit
be696d2c
authored
Jun 09, 2021
by
rusty1s
Browse files
typo
parent
3eb4a596
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torch_geometric_autoscale/utils.py
torch_geometric_autoscale/utils.py
+1
-1
No files found.
torch_geometric_autoscale/utils.py
View file @
be696d2c
...
@@ -66,7 +66,7 @@ def dropout(adj_t: SparseTensor, p: float, training: bool = True):
...
@@ -66,7 +66,7 @@ def dropout(adj_t: SparseTensor, p: float, training: bool = True):
value
=
F
.
dropout
(
adj_t
.
storage
.
value
(),
p
=
p
)
value
=
F
.
dropout
(
adj_t
.
storage
.
value
(),
p
=
p
)
adj_t
=
adj_t
.
set_value
(
value
,
layout
=
'coo'
)
adj_t
=
adj_t
.
set_value
(
value
,
layout
=
'coo'
)
else
:
else
:
mask
=
torch
.
rand
(
adj_t
.
nnz
(),
device
=
adj_t
.
storage
()
.
row
.
device
)
>
p
mask
=
torch
.
rand
(
adj_t
.
nnz
(),
device
=
adj_t
.
storage
.
row
()
.
device
)
>
p
adj_t
=
adj_t
.
masked_select_nnz
(
mask
,
layout
=
'coo'
)
adj_t
=
adj_t
.
masked_select_nnz
(
mask
,
layout
=
'coo'
)
return
adj_t
return
adj_t
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