forked from mindspore-Ecosystem/mindspore
!5600 [MS][LITE][Develop]optimize argmax
Merge pull request !5600 from chenjianping/lite_dev2
This commit is contained in:
commit
05b8efc805
|
@ -87,7 +87,7 @@ void ArgMinMaxTopknFp32(const float *input, float *output, const int *in_shape,
|
|||
}
|
||||
|
||||
void ArgMinMax(const void *input, void *output, const int *in_shape, ArgMinMaxParameter *param) {
|
||||
if (param->topk_ == 1 && !param->keep_dims_) {
|
||||
if (param->topk_ == 1) {
|
||||
ArgMinMaxTopk1(input, output, in_shape, param);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue