From 40b44b0cc0d0f535cda880acea6791ebad5f59b7 Mon Sep 17 00:00:00 2001 From: guodongliang Date: Thu, 21 Nov 2024 17:14:12 +0800 Subject: [PATCH] revise for align problems --- ntt/test/ctest/test_ntt_clamp.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ntt/test/ctest/test_ntt_clamp.cpp b/ntt/test/ctest/test_ntt_clamp.cpp index 23392ca047..c90b7f9fd0 100644 --- a/ntt/test/ctest/test_ntt_clamp.cpp +++ b/ntt/test/ctest/test_ntt_clamp.cpp @@ -23,8 +23,8 @@ using namespace nncase; using namespace ortki; TEST(ClampTestFloat, NoPack) { - constexpr size_t M = 1024; - constexpr size_t N = 1024; + constexpr size_t M = 32; + constexpr size_t N = 32; float min_input = static_cast(-10); float max_input = static_cast(10); float min_clamp = static_cast(-6); @@ -57,8 +57,8 @@ TEST(ClampTestFloat, NoPack) { } TEST(ClampTestFloat, PackM) { - constexpr size_t M = 1024; - constexpr size_t N = 1024; + constexpr size_t M = 32; + constexpr size_t N = 32; constexpr size_t P = NTT_VLEN / (sizeof(float) * 8); float min_input = static_cast(-10); float max_input = static_cast(10); @@ -98,8 +98,8 @@ TEST(ClampTestFloat, PackM) { } TEST(ClampTestFloat, PackN) { - constexpr size_t M = 1024; - constexpr size_t N = 1024; + constexpr size_t M = 32; + constexpr size_t N = 32; constexpr size_t P = NTT_VLEN / (sizeof(float) * 8); float min_input = static_cast(-10); float max_input = static_cast(10);