diff --git a/onnxruntime/test/shared_lib/test_inference.cc b/onnxruntime/test/shared_lib/test_inference.cc index cc27d78632..e4640187a8 100644 --- a/onnxruntime/test/shared_lib/test_inference.cc +++ b/onnxruntime/test/shared_lib/test_inference.cc @@ -1887,6 +1887,8 @@ TEST(CApiTest, basic_cuda_graph) { binding.ClearBoundOutputs(); } +#ifndef REDUCED_OPS_BUILD +// The following test uses some ops not supported in the reduced ops build TEST(CApiTest, cuda_graph_with_shape_nodes) { const auto& api = Ort::GetApi(); @@ -1910,6 +1912,8 @@ TEST(CApiTest, cuda_graph_with_shape_nodes) { #endif +#endif + TEST(CApiTest, create_tensor) { const char* s[] = {"abc", "kmp"}; int64_t expected_len = 2;