Skip to content

[Bug]: ArgMin failed to return the first index of -inf #27416

Open
@tianleiwu

Description

@tianleiwu

OpenVINO Version

Master Branch

Operating System

Ubuntu 20.04 (LTS)

Device used for inference

CPU

Framework

ONNX

Model used

No response

Issue description

There is one unit test for OpenVino provider failed in onnxruntime:
https://github.com/microsoft/onnxruntime/blob/6da3dea432e13a4838e67c66438a00ca740f0903/onnxruntime/test/providers/cpu/reduction/reduction_ops_test.cc#L3693-L3726

In general, we would like ArgMin to be stable, either returns the index of the first or the last minimum value.

The test replaces some elements of a vector with -inf, and expect ArgMin to return the index of first -inf in the list. But test failed.

Step-by-step reproduction

No response

Relevant log output

No response

Issue submission checklist

  • I'm reporting an issue. It's not a question.
  • I checked the problem with the documentation, FAQ, open issues, Stack Overflow, etc., and have not found a solution.
  • There is reproducer code and related data files such as images, videos, models, etc.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions