Skip to content

Commit 8dad9d9

Browse files
authored
Move einsum's test data to constexpr variables (#19320)
### Description emscripten's C++ compiler has difficulty on compiling einsum_test.cc because the file has too many local variables. So I moved them to constexpr.
1 parent c379a89 commit 8dad9d9

File tree

2 files changed

+1316
-357
lines changed

2 files changed

+1316
-357
lines changed

cmake/onnxruntime_unittests.cmake

+1-2
Original file line numberDiff line numberDiff line change
@@ -825,8 +825,7 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
825825
)
826826
endif()
827827
list(REMOVE_ITEM all_tests "${TEST_SRC_DIR}/providers/cpu/reduction/reduction_ops_test.cc"
828-
"${TEST_SRC_DIR}/providers/cpu/tensor/grid_sample_test.cc"
829-
"${TEST_SRC_DIR}/providers/cpu/math/einsum_test.cc")
828+
"${TEST_SRC_DIR}/providers/cpu/tensor/grid_sample_test.cc")
830829
endif()
831830

832831
set(test_all_args)

0 commit comments

Comments
 (0)