Skip to content

Commit f2604a3

Browse files
committed
Update Reduce operation type checks for consistency
- Changed string comparisons for reduce types in the MakeReduce method from "abs_sum" to "abssum" and "abs_max" to "absmax" for uniformity. - This adjustment enhances the clarity and consistency of the reduce type handling in the codebase.
1 parent 362c19e commit f2604a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/op/reduce.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ class ReduceType : public ObjectRef {
6060
auto node = make_object<ReduceTypeNode>();
6161
if (type == "sum") {
6262
node->type = int(ReduceTypeEnum::kSum);
63-
} else if (type == "abs_sum") {
63+
} else if (type == "abssum") {
6464
node->type = int(ReduceTypeEnum::kAbsSum);
6565
} else if (type == "max") {
6666
node->type = int(ReduceTypeEnum::kMax);
67-
} else if (type == "abs_max") {
67+
} else if (type == "absmax") {
6868
node->type = int(ReduceTypeEnum::kAbsMax);
6969
} else if (type == "min") {
7070
node->type = int(ReduceTypeEnum::kMin);

0 commit comments

Comments
 (0)