Commit 09777254 authored by ver217's avatar ver217 Committed by アマデウス
Browse files

fix initialize about zero

parent e396bb71
......@@ -307,10 +307,6 @@ def initialize(model: nn.Module,
# clip grad norm
clip_grad_norm = gpc.config.get('clip_grad_norm', 0.0)
if clip_grad_norm > 0:
if use_zero and zero_cfg is not None:
raise ConfigException(
"clip_grad_norm should be specified with zero, you should specify clip_grad in zero configuration")
# initialize amp
amp_mode = None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment