Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/xnnpack/math.h
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,8 @@ XNN_INLINE static int32_t math_round_f32_to_s32(float x) {
#define XNN_HAVE_FLOAT16 1
#endif

#if defined(__riscv) && defined(__riscv_zvfh)
// TODO: Switch to zfh and add flag to disable FP16 (non-vector)
#if defined(__riscv) && defined(__riscv_zvfh) && XNN_ENABLE_RISCV_FP16_VECTOR
#define XNN_HAVE_FLOAT16 1
#endif

Expand Down
Loading