Merge pull request #24203 from thesamesam:arm64-fp16

Fix compilation on arm64 with FP16 when disabled
This commit is contained in:
Alexander Smorkalov 2023-09-04 09:32:46 +03:00 committed by GitHub
commit c53b3c5f84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@
#define CONV_NR_FP32 28 #define CONV_NR_FP32 28
// The FP16 can only be supported by ARM64 and with FP16 FMA supported. // The FP16 can only be supported by ARM64 and with FP16 FMA supported.
#ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC // check FP16 FMA. #if defined(__ARM_FEATURE_FP16_VECTOR_ARITHMETIC) && CV_FP16 // check FP16 FMA.
#define CONV_ARM_FP16 1 #define CONV_ARM_FP16 1
#endif #endif