From 078782ea3c27b3d1e26bf621fe2ffb3ca012d439 Mon Sep 17 00:00:00 2001 From: RandySheriffH <48490400+RandySheriffH@users.noreply.github.com> Date: Wed, 1 Dec 2021 15:50:36 -0800 Subject: [PATCH] exclude test case from reduced-op build (#9895) Co-authored-by: Randy Shuai --- onnxruntime/test/shared_lib/test_inference.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/onnxruntime/test/shared_lib/test_inference.cc b/onnxruntime/test/shared_lib/test_inference.cc index 73e436263c..87dd31c74a 100644 --- a/onnxruntime/test/shared_lib/test_inference.cc +++ b/onnxruntime/test/shared_lib/test_inference.cc @@ -1887,6 +1887,7 @@ TEST(CApiTest, TestPerSessionCustomThreadPoolHooks) { // Preventing resize tranformer issue: // https://github.com/microsoft/onnxruntime/issues/9857 +#ifndef REDUCED_OPS_BUILD TEST(CApiTest, crop_and_resize) { std::vector input_value_0; input_value_0.resize(2 * 36 * 36 * 3); @@ -1921,6 +1922,7 @@ TEST(CApiTest, crop_and_resize) { ASSERT_EQ(ONNX_TENSOR_ELEMENT_DATA_TYPE_FLOAT, output_type_shape.GetElementType()); ASSERT_EQ(output_shape, output_type_shape.GetShape()); } +#endif } // namespace TestPerSessionCustomThreadHooks #endif