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
fa8d6229
Commit
fa8d6229
authored
Jun 09, 2021
by
rusty1s
Browse files
update
parent
44405d11
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
README.md
README.md
+8
-8
No files found.
README.md
View file @
fa8d6229
...
...
@@ -19,15 +19,15 @@ from torch_geometric_autoscale import ScalableGNN
from
torch_geometric_autoscale
import
metis
,
permute
,
SubgraphLoader
class
GNN
(
ScalableGNN
):
def
__init__
(
self
,
num_nodes
,
in_channels
,
hidden_channels
,
out_channels
,
num_layers
):
# pool_size determines the number of pinned CPU buffers
# buffer_size determines the size of pinned CPU buffers,
def
__init__
(
self
,
num_nodes
,
in_channels
,
hidden_channels
,
out_channels
,
num_layers
):
# * pool_size determines the number of pinned CPU buffers
# * buffer_size determines the size of pinned CPU buffers,
# i.e. the maximum number of out-of-mini-batch nodes
super
(
GNN
,
self
).
__init__
(
num_nodes
,
hidden_channels
,
num_layers
,
super
().
__init__
(
num_nodes
,
hidden_channels
,
num_layers
,
pool_size
=
2
,
buffer_size
=
5000
)
self
.
convs
=
ModuleList
()
self
.
convs
.
append
(
SAGEConv
(
in_channels
,
hidden_channels
))
for
_
in
range
(
num_layers
-
2
):
...
...
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