mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-07 17:15:29 +00:00
Fix bug that accidentally disabled training op tests (#16488)
This commit is contained in:
parent
fb7e1f133f
commit
cbfbe210a8
2 changed files with 2 additions and 2 deletions
|
|
@ -937,7 +937,7 @@ function(onnxruntime_configure_target target_name)
|
|||
set_target_properties(${target_name} PROPERTIES VS_USER_PROPS ${PROJECT_SOURCE_DIR}/EnableVisualStudioCodeAnalysis.props)
|
||||
endif()
|
||||
target_include_directories(${target_name} PRIVATE ${CMAKE_CURRENT_BINARY_DIR} ${ONNXRUNTIME_ROOT} ${abseil_cpp_SOURCE_DIR})
|
||||
if (onnxruntime_ENABLE_TRAINING_APIS)
|
||||
if (onnxruntime_ENABLE_TRAINING_OPS)
|
||||
target_include_directories(${target_name} PRIVATE ${ORTTRAINING_ROOT})
|
||||
endif()
|
||||
if (onnxruntime_ENABLE_LTO)
|
||||
|
|
|
|||
|
|
@ -377,7 +377,7 @@ endif()
|
|||
|
||||
# Disable training ops test for minimal build as a lot of these depend on loading an onnx model.
|
||||
if (NOT onnxruntime_MINIMAL_BUILD)
|
||||
if (onnxruntime_ENABLE_TRAINING_CORE)
|
||||
if (onnxruntime_ENABLE_TRAINING_OPS)
|
||||
file(GLOB_RECURSE orttraining_test_trainingops_cpu_src CONFIGURE_DEPENDS
|
||||
"${ORTTRAINING_SOURCE_DIR}/test/training_ops/compare_provider_test_utils.cc"
|
||||
"${ORTTRAINING_SOURCE_DIR}/test/training_ops/function_op_test_utils.cc"
|
||||
|
|
|
|||
Loading…
Reference in a new issue