Skip to content

Commit

Permalink
[XPU] Fix argmax to adapt dynamic shape (#10126) (#10129)
Browse files Browse the repository at this point in the history
  • Loading branch information
MuShangCC authored Mar 24, 2023
1 parent 2072742 commit 32f6299
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lite/kernels/xpu/argmax_compute.cc
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ void ArgmaxCompute::Run() {
CHECK_EQ(r, 0);
} else if (param.dtype == 2) {
// int32
out_int64_xpu_guard_->Reserve(out->numel() * sizeof(int64_t));
int64_t* out_int64_data =
reinterpret_cast<int64_t*>(out_int64_xpu_guard_->addr_);
int r = xdnn::argmax<float, int64_t>(
Expand Down

0 comments on commit 32f6299

Please sign in to comment.