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.
This commit is contained in:
Changming Sun 2024-01-30 15:59:37 -08:00 committed by GitHub
parent c379a89bcb
commit 8dad9d92f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1315 additions and 356 deletions

View file

@ -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)

File diff suppressed because it is too large Load diff