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
dc5f7414
Commit
dc5f7414
authored
Jun 07, 2021
by
rusty1s
Browse files
fix
parent
9309d91b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
examples/train_gcn2.py
examples/train_gcn2.py
+0
-1
No files found.
examples/train_gcn2.py
View file @
dc5f7414
...
@@ -60,7 +60,6 @@ def train(model, loader, optimizer):
...
@@ -60,7 +60,6 @@ def train(model, loader, optimizer):
train_mask
=
batch
.
train_mask
[:
out
.
size
(
0
)]
train_mask
=
batch
.
train_mask
[:
out
.
size
(
0
)]
loss
=
criterion
(
out
[
train_mask
],
batch
.
y
[:
out
.
size
(
0
)][
train_mask
])
loss
=
criterion
(
out
[
train_mask
],
batch
.
y
[:
out
.
size
(
0
)][
train_mask
])
loss
.
backward
()
loss
.
backward
()
torch
.
nn
.
utils
.
clip_grad_norm_
(
model
.
parameters
(),
1.0
)
optimizer
.
step
()
optimizer
.
step
()
...
...
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