Skip to content

Commit

Permalink
Fix param input order for cudagraph
Browse files Browse the repository at this point in the history
Signed-off-by: yifeis-nv <[email protected]>
  • Loading branch information
yifeis-nv committed Aug 28, 2024
1 parent 7fc50f4 commit 4235bfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions transformer_engine/pytorch/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ def _make_graphed_callables(
]
else:
per_callable_module_params = []
for c in callables:
for i in range(num_microbatches):
for i in range(num_microbatches):
for c in callables:
per_callable_module_params.append(
tuple(c.parameters()) if isinstance(c, torch.nn.Module) else ()
)
Expand Down

0 comments on commit 4235bfe

Please sign in to comment.