From 2bccfeb38e1d260b042c1be59bdce5cd6830a3bd Mon Sep 17 00:00:00 2001 From: Yi Zhang Date: Sat, 7 Oct 2023 22:57:50 +0800 Subject: [PATCH] training domain --- onnxruntime/test/onnx/TestCase.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/onnxruntime/test/onnx/TestCase.cc b/onnxruntime/test/onnx/TestCase.cc index fcef036163d4c..5771152271a26 100644 --- a/onnxruntime/test/onnx/TestCase.cc +++ b/onnxruntime/test/onnx/TestCase.cc @@ -782,6 +782,11 @@ void LoadTests(const std::vector>& input_paths ORT_NOT_IMPLEMENTED(ToUTF8String(filename_str), " is not supported"); } + if (model_info->HasDomain(ONNX_NAMESPACE::AI_ONNX_TRAINING_DOMAIN) || + model_info->HasDomain(ONNX_NAMESPACE::AI_ONNX_PREVIEW_TRAINING_DOMAIN)) { + return true; + } + const auto tolerance_key = ToUTF8String(my_dir_name); std::unique_ptr l = CreateOnnxTestCase(ToUTF8String(test_case_name), std::move(model_info),