Skip to content

Commit 49b5517

Browse files
xunnanxufacebook-github-bot
authored andcommitted
fix pipeline fwd type (#2962)
Summary: Pull Request resolved: #2962 This may lead to ``` assert isinstance(forward, PrefetchPipelinedForward) AssertionError ``` TLDR is the type shouldn't be set at instance level (not sure if this was incorrectly introduced by some kind of rebasing tho...) or inheritance may be accidentally broken. Reviewed By: iamzainhuda Differential Revision: D74428624 fbshipit-source-id: 066029c9978801150c142db7df6cff516aa52047
1 parent 8f55f3a commit 49b5517

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

torchrec/distributed/train_pipeline/train_pipelines.py

-1
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,6 @@ def __init__(
468468
self._model_fwd: Callable[[Optional[In]], Tuple[torch.Tensor, Out]] = (
469469
custom_model_fwd if custom_model_fwd else model
470470
)
471-
self._pipelined_forward_type = PipelinedForward
472471
self._dmp_collection_sync_interval_batches = (
473472
dmp_collection_sync_interval_batches
474473
)

0 commit comments

Comments
 (0)