Skip to content

Commit

Permalink
[test] fix unit test (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
delock authored and inkcherry committed Aug 9, 2022
1 parent 3967718 commit ec9c7a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepspeed/runtime/fp16/unfused_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(self,
if dist.get_rank() == 0:
logger.info(f'Fused Lamb Legacy : {self.fused_lamb_legacy} ')

if not accel_runtime.is_fp16_supported():
if not accel_runtime.is_available():
raise SystemError("No accelerator or accelerator does not support FP16.")
self.optimizer = init_optimizer

Expand Down

0 comments on commit ec9c7a3

Please sign in to comment.