From ab1736973a4744e0b8d8c48791a764a94ff0c519 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Thu, 19 Oct 2023 11:36:49 +0200 Subject: [PATCH] fix ndarray_traits<__fp16> test on aarch64 --- tests/test_ndarray.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/test_ndarray.cpp b/tests/test_ndarray.cpp index 30b0f6cd..23d59824 100644 --- a/tests/test_ndarray.cpp +++ b/tests/test_ndarray.cpp @@ -15,10 +15,11 @@ static int i_global[] { 1, 2, 3, 4, 5, 6, 7, 8 }; #if defined(__aarch64__) namespace nanobind { template <> struct ndarray_traits<__fp16> { - static constexpr bool is_float = true; - static constexpr bool is_bool = false; - static constexpr bool is_int = false; - static constexpr bool is_signed = true; + static constexpr bool is_complex = false; + static constexpr bool is_float = true; + static constexpr bool is_bool = false; + static constexpr bool is_int = false; + static constexpr bool is_signed = true; }; }; #endif