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
Megatron-LM
Commits
d4bb6cb0
Commit
d4bb6cb0
authored
Aug 25, 2020
by
Boris Fomitchev
Browse files
Making onnx-safe option overrideable
Signed-off-by:
Boris Fomitchev
<
bfomitchev@nvidia.com
>
parent
3d1cbecf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
megatron/arguments.py
megatron/arguments.py
+1
-1
No files found.
megatron/arguments.py
View file @
d4bb6cb0
...
@@ -169,7 +169,7 @@ def _add_network_size_args(parser):
...
@@ -169,7 +169,7 @@ def _add_network_size_args(parser):
help
=
'Use OpenAIs GeLU implementation. This option'
help
=
'Use OpenAIs GeLU implementation. This option'
'should not be used unless for backward compatibility'
'should not be used unless for backward compatibility'
'reasons.'
)
'reasons.'
)
group
.
add_argument
(
'--onnx-safe'
,
action
=
'store_true'
,
group
.
add_argument
(
'--onnx-safe'
,
type
=
bool
,
required
=
False
,
help
=
'Use workarounds for known problems with Torch ONNX exporter'
)
help
=
'Use workarounds for known problems with Torch ONNX exporter'
)
return
parser
return
parser
...
...
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