Skip to content

Commit

Permalink
[NPU] replace ReduceSumD with ReduceSum (#1277)
Browse files Browse the repository at this point in the history
  • Loading branch information
will-jl944 authored Jun 4, 2024
1 parent c3c84d5 commit 2444df5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions backends/npu/kernels/elementwise_mul_kernel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,12 @@ static void ReduceDims(const Context& dev_ctx,
}
}
dev_ctx.template Alloc<T>(out);
const auto& runner = NpuOpRunner(
"ReduceSumD", {in}, {*out}, {{"axes", axes}, {"keep_dims", false}});
NpuOpRunner runner;
runner.SetType("ReduceSum");
runner.AddInput(in);
runner.AddInput(dev_ctx, std::move(axes));
runner.AddOutput(*out);
runner.AddAttr("keep_dims", false);
runner.Run(stream);
}

Expand Down

0 comments on commit 2444df5

Please sign in to comment.