Fix syntax error: 'is not not None' -> 'is not None'

This commit is contained in:
2026-06-03 16:34:33 +00:00
parent ba68212fa7
commit caac8ae108

View File

@@ -147,7 +147,7 @@ def run_sync_debug_mode():
("ffn", ffn_mhcs, f"model.layers.{li}.ffn_hc.fn", f"model.layers.{li}.ffn_hc.base", f"model.layers.{li}.ffn_hc.scale"),
]:
fn, base, scale = all_w.get(fn_s), all_w.get(base_s), all_w.get(scale_s)
if fn is not None and base is not None and scale is not not None:
if fn is not None and base is not None and scale is not None:
m = mHCLayer(hidden_dim=H, n_hc=4, t_max_sinkhorn=20, device=dev)
n = 4
m.load_weights(