Skip to content

Commit

Permalink
Trying to fix AVX tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinchowdhury18 committed Sep 27, 2024
1 parent 0b6364f commit 717df48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/functional/torch_convtranspose1d_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void testTorchConvTranspose1DModelComptime(const std::string& model_file_path,
alignas(RTNEURAL_DEFAULT_ALIGNMENT) Eigen::Matrix<T, IN_SIZE, 1> input_data {};
input_data.setZero();
#elif RTNEURAL_USE_XSIMD
alignas(RTNEURAL_DEFAULT_ALIGNMENT) xsimd::batch<T> input_data[IN_SIZE / xsimd::batch<T>::size] {};
alignas(RTNEURAL_DEFAULT_ALIGNMENT) xsimd::batch<T> input_data[RTNeural::ceil_div(IN_SIZE, (int) xsimd::batch<T>::size)] {};
#else
alignas(RTNEURAL_DEFAULT_ALIGNMENT) T input_data[IN_SIZE] {};
#endif
Expand Down Expand Up @@ -170,7 +170,7 @@ void testTorchConvTranspose1DModelComptime(const std::string& model_file_path,
alignas(RTNEURAL_DEFAULT_ALIGNMENT) Eigen::Matrix<T, IN_SIZE, 1> input_data {};
input_data.setZero();
#elif RTNEURAL_USE_XSIMD
alignas(RTNEURAL_DEFAULT_ALIGNMENT) xsimd::batch<T> input_data[IN_SIZE / xsimd::batch<T>::size] {};
alignas(RTNEURAL_DEFAULT_ALIGNMENT) xsimd::batch<T> input_data[RTNeural::ceil_div(IN_SIZE, (int) xsimd::batch<T>::size)] {};
#else
alignas(RTNEURAL_DEFAULT_ALIGNMENT) T input_data[IN_SIZE] {};
#endif
Expand Down Expand Up @@ -271,7 +271,7 @@ void testStreamingTorchConvTranspose1DModelComptime(const std::string& model_fil
alignas(RTNEURAL_DEFAULT_ALIGNMENT) Eigen::Matrix<T, IN_SIZE, 1> input_data {};
input_data.setZero();
#elif RTNEURAL_USE_XSIMD
alignas(RTNEURAL_DEFAULT_ALIGNMENT) xsimd::batch<T> input_data[IN_SIZE / xsimd::batch<T>::size] {};
alignas(RTNEURAL_DEFAULT_ALIGNMENT) xsimd::batch<T> input_data[RTNeural::ceil_div(IN_SIZE, (int) xsimd::batch<T>::size)] {};
#else
alignas(RTNEURAL_DEFAULT_ALIGNMENT) T input_data[IN_SIZE] {};
#endif
Expand Down Expand Up @@ -319,7 +319,7 @@ void testStreamingTorchConvTranspose1DModelComptime(const std::string& model_fil
alignas(RTNEURAL_DEFAULT_ALIGNMENT) Eigen::Matrix<T, IN_SIZE, 1> input_data {};
input_data.setZero();
#elif RTNEURAL_USE_XSIMD
alignas(RTNEURAL_DEFAULT_ALIGNMENT) xsimd::batch<T> input_data[IN_SIZE / xsimd::batch<T>::size] {};
alignas(RTNEURAL_DEFAULT_ALIGNMENT) xsimd::batch<T> input_data[RTNeural::ceil_div(IN_SIZE, (int) xsimd::batch<T>::size)] {};
#else
alignas(RTNEURAL_DEFAULT_ALIGNMENT) T input_data[IN_SIZE] {};
#endif
Expand Down

0 comments on commit 717df48

Please sign in to comment.