Skip to content

Commit

Permalink
1. Added another guard.
Browse files Browse the repository at this point in the history
Signed-off-by: Micha Livne <[email protected]>
  • Loading branch information
michalivne committed Feb 17, 2022
1 parent 4facaf9 commit d705961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nemo/collections/nlp/modules/common/megatron/clip_grads.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@

"""Gradient clipping."""

import amp_C
import torch
from torch._six import inf

from nemo.collections.nlp.modules.common.megatron.module import param_is_not_shared

try:
import amp_C
from apex.multi_tensor_apply import multi_tensor_applier
from apex.transformer import parallel_state
from apex.transformer.tensor_parallel.layers import param_is_not_tensor_parallel_duplicate
Expand Down

0 comments on commit d705961

Please sign in to comment.