Skip to content

Commit

Permalink
test=develop test=xpu
Browse files Browse the repository at this point in the history
  • Loading branch information
hong19860320 committed Jul 21, 2020
1 parent e0c42aa commit 2e00379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lite/backends/arm/math/beam_search.cc
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ void beam_search(const Tensor *pre_ids,
selected_ids->Resize(dims);
selected_scores->Resize(dims);
if (parent_idx) {
parent_idx->Resize(std::vector<int64_t>({static_cast<int>(num_instances)}));
parent_idx->Resize({static_cast<int64_t>(num_instances)});
}
auto *selected_ids_data = selected_ids->mutable_data<int64_t>();
auto *selected_scores_data = selected_scores->mutable_data<float>();
Expand Down

0 comments on commit 2e00379

Please sign in to comment.