Skip to content

[OpenVINO EP] GetCapability shouldn't override the NPU device type as CPU #25164

Open
@mingmingtasd

Description

@mingmingtasd

GetCapability::GetCapability overrides the NPU device type as CPU to construct the DataOps, it'svery confusing and and unreasonable. The DataOps::op_is_supported(std::string name, std::vector<SupportedOp>& op_list) will use supported_op_mode and populate_op_mode_supported to identify whether the op is supported by the specified device type. For NPU device type, for example, we should define something like {"Abs", V_2020_4, {"CPU", "GPU", "NPU"}}, instead of {"Abs", V_2020_4, {"CPU", "GPU"}}, in the supported_op_mode .

There should also be a branch for NPU: https://github.com/microsoft/onnxruntime/blob/main/onnxruntime/core/providers/openvino/ov_versions/data_ops.cc#L595

Metadata

Metadata

Assignees

No one assigned

    Labels

    ep:OpenVINOissues related to OpenVINO execution provider

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions