Skip to content

Commit 7452ba5

Browse files
committed
nit
1 parent 586b164 commit 7452ba5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tests/hooks/test_group_offloading.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,6 @@ def apply_layer_output_tracker_hook(model: DummyModelWithLayerNorm):
348348

349349
for (ref_name, ref_module), (name, module) in zip(model_ref.named_modules(), model.named_modules()):
350350
assert ref_name == name
351-
if not isinstance(ref_module, (torch.nn.Linear, torch.nn.LayerNorm)):
352-
continue
353351
ref_outputs = (
354352
HookRegistry.check_if_exists_or_initialize(ref_module).get_hook("layer_output_tracker").outputs
355353
)

0 commit comments

Comments
 (0)