From 73310b2a0f6d623e95ae37d2ab4d7892a4654dc9 Mon Sep 17 00:00:00 2001 From: Hariharan Seshadri Date: Mon, 11 Jul 2022 19:02:38 -0700 Subject: [PATCH] Fix Reduced Ops build pipeline (#12144) Fix ReducedOps build pipeline --- onnxruntime/test/shared_lib/test_inference.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/onnxruntime/test/shared_lib/test_inference.cc b/onnxruntime/test/shared_lib/test_inference.cc index 5c37bb77a0..8c04ec082b 100644 --- a/onnxruntime/test/shared_lib/test_inference.cc +++ b/onnxruntime/test/shared_lib/test_inference.cc @@ -2166,7 +2166,8 @@ TEST(CApiTest, TestCudaMemcpyToHostWithSequenceTensors) { #endif -#if !defined(DISABLE_OPTIONAL_TYPE) +// Reduced Ops build doesn't support OptionalHasElement (16) yet +#if !defined(REDUCED_OPS_BUILD) && !defined(DISABLE_OPTIONAL_TYPE) TEST(CApiTest, GH_11717) { const auto* model_path = OPTIONAL_TYPE_GH_11717_MODEL; Ort::SessionOptions session_options{};