From b0c707caa871c820c7646138cd275a95c7db89c0 Mon Sep 17 00:00:00 2001 From: KeDengMS Date: Wed, 18 Aug 2021 10:32:42 -0700 Subject: [PATCH] [Nuphar] Do not handle MatMulInteger with zero-points (#8760) MatMulInteger can take zero-points as input, and Nuphar does not handle that yet. Fall back to CPU EP in that case. --- onnxruntime/core/providers/nuphar/nuphar_execution_provider.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/onnxruntime/core/providers/nuphar/nuphar_execution_provider.cc b/onnxruntime/core/providers/nuphar/nuphar_execution_provider.cc index b29b2fdd89..98babf3243 100644 --- a/onnxruntime/core/providers/nuphar/nuphar_execution_provider.cc +++ b/onnxruntime/core/providers/nuphar/nuphar_execution_provider.cc @@ -321,6 +321,9 @@ NupharExecutionProvider::GetCapability(const onnxruntime::GraphViewer& graph_vie return false; } } + if (node.OpType() == "MatMulInteger" && inputs.size() > 2) { + return false; // do not support MatMulInteger with zero points + } return true; }; GraphPartitioner graph_partitioner(is_supported_func);