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
6e888151
Commit
6e888151
authored
Mar 09, 2022
by
Lawrence McAfee
Browse files
removed clip_grad_norm shortcut.
parent
28b63ec7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
megatron/optimizer/optimizer.py
megatron/optimizer/optimizer.py
+0
-3
No files found.
megatron/optimizer/optimizer.py
View file @
6e888151
...
@@ -99,9 +99,6 @@ class MegatronOptimizer(ABC):
...
@@ -99,9 +99,6 @@ class MegatronOptimizer(ABC):
def
clip_grad_norm
(
self
,
clip_grad
,
ITERATION
):
def
clip_grad_norm
(
self
,
clip_grad
,
ITERATION
):
# >>>
return
# <<<
params
=
self
.
get_parameters
()
params
=
self
.
get_parameters
()
return
clip_grad_norm_fp32
(
params
,
clip_grad
,
ITERATION
=
ITERATION
)
return
clip_grad_norm_fp32
(
params
,
clip_grad
,
ITERATION
=
ITERATION
)
...
...
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