[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.
This commit is contained in:
KeDengMS 2021-08-18 10:32:42 -07:00 committed by GitHub
parent 00b345eb7b
commit b0c707caa8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);