Skip to content

Commit

Permalink
change auto to int
Browse files Browse the repository at this point in the history
  • Loading branch information
alvoron committed May 3, 2024
1 parent 6873c49 commit 5d62f3a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ bool AclReduceExecutor::init(const ReduceAttrs& reduceAttrs,
switch (reduceAttrs.operation) {
case Algorithm::ReduceMean: {
for (size_t i = 0; i < reduceAttrs.axes.size(); ++i) {
auto axe = axisCast(reduceAttrs.axes[i], srcDims.size());
int axe = axisCast(reduceAttrs.axes[i], srcDims.size());
auto pos = axisCast(i, reduceAttrs.axes.size());
if (srcDescs[0]->hasLayoutType(LayoutType::nspc)) {
axe = getAxeNchwLayout(axe);
Expand Down

0 comments on commit 5d62f3a

Please sign in to comment.