Skip to content

Commit

Permalink
[FIX] add sharding propagation after auto sharding (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZYHowell authored Nov 8, 2022
1 parent 2079e74 commit 24d5f1b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tensorflow/compiler/xla/service/spmd/alpa_compiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ Status RunAutoShardingPass(HloModule* hlo_module,
spmd_simplify.AddPass<HloDCE>();

spmd_pipeline.AddPass<AutoSharding>();
spmd_pipeline.AddPass<ShardingPropagation>(
/*is_spmd=*/true, /*propagate_metadata=*/false,
/*allow_spmd_sharding_propagation_to_output=*/true);
spmd_pipeline.AddPass<SliceAutoShardedStages>();
} else {
spmd_pipeline.AddPass<CallInliner>();
Expand Down

0 comments on commit 24d5f1b

Please sign in to comment.