Skip DNNL's opset18 tests (#15275)

### Description
DNNL EP doesn't support opset18 yet. So, let it skip such tests so that
we could still test the other EPs.

The models mentioned above are ONNX node tests that live in
github.com/onnx/onnx
This commit is contained in:
Changming Sun 2023-03-30 09:58:11 -07:00 committed by GitHub
parent 6d464748ba
commit 75f6861cb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -118,10 +118,12 @@ TEST_P(ModelTest, Run) {
return;
}
if (model_info->GetONNXOpSetVersion() == 10 && provider_name == "dnnl") {
if ((model_info->GetONNXOpSetVersion() == 10 || model_info->GetONNXOpSetVersion() >= 18) && provider_name == "dnnl") {
// DNNL can run most of the model tests, but only part of
// them is enabled here to save CI build time.
SkipTest(" dnnl doesn't support opset 10");
std::ostringstream oss;
oss << " dnnl doesn't support opset " << model_info->GetONNXOpSetVersion();
SkipTest(oss.str());
return;
}