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
bd487011
Commit
bd487011
authored
Jun 08, 2021
by
rusty1s
Browse files
update small benchmark
parent
38ca4fb2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
small_benchmark/main.py
small_benchmark/main.py
+1
-1
torch_geometric_autoscale/models/gat.py
torch_geometric_autoscale/models/gat.py
+0
-2
No files found.
small_benchmark/main.py
View file @
bd487011
...
@@ -87,7 +87,7 @@ def main(conf):
...
@@ -87,7 +87,7 @@ def main(conf):
num_nodes
=
data
.
num_nodes
,
num_nodes
=
data
.
num_nodes
,
in_channels
=
in_channels
,
in_channels
=
in_channels
,
out_channels
=
out_channels
,
out_channels
=
out_channels
,
device
=
device
,
#
P
ut histories on GPU.
device
=
device
,
#
... and p
ut histories on GPU
as well
.
**
params
.
architecture
,
**
params
.
architecture
,
).
to
(
device
)
).
to
(
device
)
...
...
torch_geometric_autoscale/models/gat.py
View file @
bd487011
...
@@ -43,8 +43,6 @@ class GAT(ScalableGNN):
...
@@ -43,8 +43,6 @@ class GAT(ScalableGNN):
super
().
reset_parameters
()
super
().
reset_parameters
()
for
conv
in
self
.
convs
:
for
conv
in
self
.
convs
:
conv
.
reset_parameters
()
conv
.
reset_parameters
()
for
lin
in
self
.
lins
:
lin
.
reset_parameters
()
def
forward
(
self
,
x
:
Tensor
,
adj_t
:
SparseTensor
,
*
args
)
->
Tensor
:
def
forward
(
self
,
x
:
Tensor
,
adj_t
:
SparseTensor
,
*
args
)
->
Tensor
:
for
conv
,
history
in
zip
(
self
.
convs
[:
-
1
],
self
.
histories
):
for
conv
,
history
in
zip
(
self
.
convs
[:
-
1
],
self
.
histories
):
...
...
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