Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Host] fix unique op reporting absent of dtype and unused variable #9928

Merged
merged 2 commits into from
Jan 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lite/kernels/host/unique_compute.cc
Original file line number Diff line number Diff line change
Expand Up @@ -373,13 +373,12 @@ void UniqueCompute<InT>::Run() {
auto index = param.Index;
auto indices = param.Indices;
auto count = param.Counts;
auto dtype = param.dtype;
bool return_index = param.return_index;
bool return_inverse = param.return_inverse;
bool return_counts = param.return_counts;
auto axis_vec = param.axis;
auto is_sorted = param.is_sorted;
lite_api::PrecisionType index_type = index->precision();
lite_api::PrecisionType x_type = x->precision();
CHECK(dtype == 3 || dtype == 2) << "dtype must be int or int64, but now is "
<< static_cast<int>(dtype);
// set output precision
Expand Down