Skip to content

Commit 2784628

Browse files
committed
Minor update to if branching
Signed-off-by: Andrea Fasoli <[email protected]>
1 parent c30a418 commit 2784628

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

fms_mo/utils/aiu_utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,10 @@ def recompute_weight_with_sawb(
226226
f"-> {weight_int_sawb_as_fp_std:.1f}) "
227227
f"and clips of {layer_name + '.weight'}"
228228
)
229-
else:
229+
elif verbose:
230230
log_min_std = "min_" if weight_per_channel else ""
231231
log_w_std = weight_int_std_min if weight_per_channel else weight_int_std
232-
if verbose:
233-
logger.info(f" Weights preserved ({log_min_std}std={log_w_std:.1f})")
232+
logger.info(f" Weights preserved ({log_min_std}std={log_w_std:.1f})")
234233

235234
return weight_int_sawb, is_w_recomputed
236235

0 commit comments

Comments
 (0)