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
36418292
Unverified
Commit
36418292
authored
Jul 12, 2021
by
Jinjing Zhou
Committed by
GitHub
Jul 12, 2021
Browse files
fix docs (#3126)
Co-authored-by:
Quan (Andy) Gan
<
coin2028@hotmail.com
>
parent
fc55225f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
examples/pytorch/ogb/deepwalk/deepwalk.py
examples/pytorch/ogb/deepwalk/deepwalk.py
+8
-3
No files found.
examples/pytorch/ogb/deepwalk/deepwalk.py
View file @
36418292
...
...
@@ -291,8 +291,13 @@ if __name__ == '__main__':
parser
.
add_argument
(
'--async_update'
,
default
=
False
,
action
=
"store_true"
,
help
=
"mixed training asynchronously, not recommended"
)
parser
.
add_argument
(
'--fast_neg'
,
default
=
False
,
action
=
"store_true"
,
help
=
"do negative sampling inside a batch"
)
parser
.
add_argument
(
'--true_neg'
,
default
=
False
,
action
=
"store_true"
,
help
=
"If not specified, this program will use "
"a faster negative sampling method, "
"but the samples might be false negative "
"with a small probability. If specified, "
"this program will generate a true negative sample table,"
"and select from it when doing negative samling"
)
parser
.
add_argument
(
'--num_threads'
,
default
=
8
,
type
=
int
,
help
=
"number of threads used for each CPU-core/GPU"
)
parser
.
add_argument
(
'--num_sampler_threads'
,
default
=
2
,
type
=
int
,
...
...
@@ -302,7 +307,7 @@ if __name__ == '__main__':
help
=
"count the params, exit once counting over"
)
args
=
parser
.
parse_args
()
args
.
fast_neg
=
not
args
.
true_neg
if
args
.
async_update
:
assert
args
.
mix
,
"--async_update only with --mix"
...
...
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