diff --git a/onnxruntime/test/shared_lib/test_inference.cc b/onnxruntime/test/shared_lib/test_inference.cc index d20cd97f9a..28459856fc 100644 --- a/onnxruntime/test/shared_lib/test_inference.cc +++ b/onnxruntime/test/shared_lib/test_inference.cc @@ -405,7 +405,8 @@ TEST(CApiTest, custom_op_handler) { #endif } -#if !defined(ORT_MINIMAL_BUILD) +#if !defined(ORT_MINIMAL_BUILD) && !defined(REDUCED_OPS_BUILD) +//disable test in reduced-op-build since TOPK and GRU are excluded there TEST(CApiTest, instant_op_handler) { std::vector inputs(1); Input& input = inputs[0];