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
6a0c21bd
"docs/vscode:/vscode.git/clone" did not exist on "9f52a36fad37bcb26e19dfc767d4405310f52399"
Commit
6a0c21bd
authored
Jun 07, 2021
by
rusty1s
Browse files
add comment
parent
7e84bf5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
README.md
README.md
+3
-0
No files found.
README.md
View file @
6a0c21bd
...
...
@@ -22,9 +22,12 @@ 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
super
(
GNN
,
self
).
__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