Skip to content

Commit

Permalink
#sdy remove use of designated initializers for windows support.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 657733218
  • Loading branch information
tomnatan30 authored and copybara-github committed Jul 30, 2024
1 parent 526fb4d commit c7861b6
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,8 @@ UpdateTensorShardings BasicFactorPropagation::propagateFactorShardings(
ShardingProjection& projection, PropagationDirection direction,
ArrayRef<int64_t> factorSizes, MeshAttr mesh, Operation* op,
bool conservativePropagation) const {
UpdateTensorShardings result{
UpdateTensorShardings result_2{
// TODO
.updateOperands = BitVector(projection.getNumOperands()),
.updateResults = BitVector(projection.getNumResults())};

Expand All @@ -405,11 +406,11 @@ UpdateTensorShardings BasicFactorPropagation::propagateFactorShardings(
auto [updateOperandForFactor, updateResultForFactor] =
projection.updateSharding(factorIndex, axesToPropagate);

result.updateOperands |= updateOperandForFactor;
result.updateResults |= updateResultForFactor;
result_2.updateOperands |= updateOperandForFactor;
result_2.updateResults |= updateResultForFactor;
}

return result;
return result_2;
}

} // namespace sdy
Expand Down

0 comments on commit c7861b6

Please sign in to comment.