Skip to content

Commit

Permalink
[fix] remove duplicate arg; rm comments;
Browse files Browse the repository at this point in the history
  • Loading branch information
duanjunwen committed Sep 26, 2024
1 parent c5503b0 commit bb0390c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/test_pipeline/test_schedule/test_zerobubble_pp.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ def __init__(

def forward(
self,
model=None,
data: torch.Tensor = None,
hidden_states: torch.Tensor = None,
stage_index=None,
Expand Down Expand Up @@ -622,10 +621,7 @@ def criterion_base(x, *args, **kwargs):
stage_manager.stage_indices = stage_manager.get_stage_index(layers_per_stage)

model_pp._forward = model_pp.forward
# model_pp.forward = MethodType(
# partial(model_pp._forward, stage_mgr=stage_manager),
# model_pp,
# )

model_pp.forward = partial(model_pp._forward, stage_mgr=stage_manager)

# init optimizer
Expand Down

0 comments on commit bb0390c

Please sign in to comment.