Open
Description
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