Skip to content

Commit

Permalink
fix ndarray_traits<__fp16> test on aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
wjakob committed Oct 19, 2023
1 parent 6c46b86 commit ab17369
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/test_ndarray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ab17369

Please sign in to comment.