Skip to content

Commit

Permalink
Move einsum's test data to constexpr variables (microsoft#19320)
Browse files Browse the repository at this point in the history
### 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.
  • Loading branch information
snnn authored Jan 30, 2024
1 parent c379a89 commit 8dad9d9
Show file tree
Hide file tree
Showing 2 changed files with 1,316 additions and 357 deletions.
3 changes: 1 addition & 2 deletions cmake/onnxruntime_unittests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -825,8 +825,7 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
)
endif()
list(REMOVE_ITEM all_tests "${TEST_SRC_DIR}/providers/cpu/reduction/reduction_ops_test.cc"
"${TEST_SRC_DIR}/providers/cpu/tensor/grid_sample_test.cc"
"${TEST_SRC_DIR}/providers/cpu/math/einsum_test.cc")
"${TEST_SRC_DIR}/providers/cpu/tensor/grid_sample_test.cc")
endif()

set(test_all_args)
Expand Down
Loading

0 comments on commit 8dad9d9

Please sign in to comment.