Skip to content

Commit 0973a05

Browse files
pre-commit-ci[bot]denera
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 3def47c commit 0973a05

File tree

1 file changed

+2
-3
lines changed
  • transformer_engine/pytorch/module

1 file changed

+2
-3
lines changed

transformer_engine/pytorch/module/base.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -418,9 +418,8 @@ def add_ub(
418418
if name in ub_cfgs:
419419
final_cfg = get_default_config(name)
420420
final_cfg.update(ub_cfgs[name])
421-
final_cfg["fp8_buf"] = (
422-
(name in layers_all_gather_overlap)
423-
or ub_cfgs[name].get("fp8_buf", False)
421+
final_cfg["fp8_buf"] = (name in layers_all_gather_overlap) or ub_cfgs[name].get(
422+
"fp8_buf", False
424423
)
425424
add_ub(name, **final_cfg)
426425

0 commit comments

Comments
 (0)