From bb96382942bbb0b142a209cfd7259036f5e50013 Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov Date: Mon, 6 Jul 2026 10:08:21 +0300 Subject: [PATCH] Skip some BERT tests on 32-bit platforms as they do not fit into 2gb ram. --- modules/dnn/test/test_model.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/dnn/test/test_model.cpp b/modules/dnn/test/test_model.cpp index 89e9b722d0..e67547f16c 100644 --- a/modules/dnn/test/test_model.cpp +++ b/modules/dnn/test/test_model.cpp @@ -829,8 +829,9 @@ INSTANTIATE_TEST_CASE_P(/**/, Reproducibility_ViT_ONNX, typedef testing::TestWithParam Reproducibility_BERT_ONNX; TEST_P(Reproducibility_BERT_ONNX, Accuracy) { + applyTestTag(CV_TEST_TAG_MEMORY_2GB); + Target targetId = GetParam(); - applyTestTag(targetId == DNN_TARGET_CPU ? CV_TEST_TAG_MEMORY_1GB : CV_TEST_TAG_MEMORY_2GB); ASSERT_TRUE(ocl::useOpenCL() || targetId == DNN_TARGET_CPU || targetId == DNN_TARGET_CPU_FP16); auto engine_forced = static_cast( cv::utils::getConfigurationParameterSizeT("OPENCV_FORCE_DNN_ENGINE", ENGINE_AUTO));