mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-03 23:49:44 +00:00
Disable GradientCheckerTest tests for GPU/Debug build (#3407)
This commit is contained in:
parent
e2afe5e054
commit
d89e5d91a6
2 changed files with 2 additions and 5 deletions
|
|
@ -406,11 +406,6 @@ endif()
|
|||
set(all_dependencies ${onnxruntime_test_providers_dependencies} )
|
||||
|
||||
if (onnxruntime_ENABLE_TRAINING)
|
||||
if(${CMAKE_BUILD_TYPE} MATCHES "Debug" AND NOT onnxruntime_USE_CUDA)
|
||||
file(GLOB grad_test_src "${ORTTRAINING_SOURCE_DIR}/test/gradient/*.cc")
|
||||
list(REMOVE_ITEM onnxruntime_test_training_src ${grad_test_src})
|
||||
endif()
|
||||
|
||||
list(APPEND all_tests ${onnxruntime_test_training_src})
|
||||
endif()
|
||||
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
namespace onnxruntime {
|
||||
namespace test {
|
||||
|
||||
#ifdef NDEBUG
|
||||
using ONNX_NAMESPACE::MakeAttribute;
|
||||
using training::OpDef;
|
||||
|
||||
|
|
@ -1563,6 +1564,7 @@ TEST(Synchronization, WaitAndRecordEventMany) {
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
} // namespace test
|
||||
} // namespace onnxruntime
|
||||
|
|
|
|||
Loading…
Reference in a new issue