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
dgl
Commits
83437e67
Unverified
Commit
83437e67
authored
Aug 02, 2023
by
Andrei Ivanov
Committed by
GitHub
Aug 03, 2023
Browse files
Removing the warning that appears in the Graph Transformer example (#6061)
parent
ec7137dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/sparse/graph_transformer.py
examples/sparse/graph_transformer.py
+1
-1
No files found.
examples/sparse/graph_transformer.py
View file @
83437e67
...
...
@@ -181,7 +181,7 @@ if __name__ == "__main__":
evaluator
=
Evaluator
(
"ogbg-molhiv"
)
# laplacian positional encoding
for
g
,
_
in
tqdm
(
dataset
,
desc
=
"Computing Laplacian PE"
):
g
.
ndata
[
"PE"
]
=
dgl
.
lap
lacian
_pe
(
g
,
k
=
pos_enc_size
,
padding
=
True
)
g
.
ndata
[
"PE"
]
=
dgl
.
lap_pe
(
g
,
k
=
pos_enc_size
,
padding
=
True
)
# Create model.
out_size
=
dataset
.
num_tasks
...
...
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