Skip to content

Commit 2355ef2

Browse files
ZixuanJiangcopybara-github
authored andcommitted
Update comments.
Reverts changelist 738190249 PiperOrigin-RevId: 738515101
1 parent fec5f29 commit 2355ef2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

shardy/dialect/sdy/transforms/propagation/op_sharding_rule_builder.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class OpShardingRuleBuilder {
8787
FactorType factorType = FactorType::kPassThrough);
8888

8989
// Adds a pointwise factor for all dimensions of all operands/results that
90-
// have rank at least 1. The factor type is determined by `predFactorType`.
90+
// have rank at least 1. The factor type is determined by `getFactorType`.
9191
OpShardingRuleBuilder& addPointwise(
9292
ArrayRef<int64_t> shape,
9393
std::function<FactorType(int64_t)> getFactorType = [](int64_t) {
@@ -96,7 +96,7 @@ class OpShardingRuleBuilder {
9696

9797
// Adds a pointwise factor for all dimensions that satisfy `pred` of all
9898
// operands/results that have rank at least 1. The factor type is determined
99-
// by `predFactorType`.
99+
// by `getFactorType`.
100100
OpShardingRuleBuilder& addPointwiseIf(
101101
ArrayRef<int64_t> shape, std::function<bool(int64_t)> pred,
102102
std::function<FactorType(int64_t)> getFactorType = [](int64_t) {
@@ -113,7 +113,7 @@ class OpShardingRuleBuilder {
113113
onMismatchFn = [](int64_t dim, OpShardingRuleBuilder& builder) {});
114114

115115
// Adds a pointwise factor for all dimensions of all operands/results that
116-
// have rank at least 1. The factor type is determined by `predFactorType`.
116+
// have rank at least 1.
117117
//
118118
// Each dimension whose size in `inShape` and `outShape` is different, gets a
119119
// `mismatchFactorType` factor type.

0 commit comments

Comments
 (0)