[Kernel] Squash a few more warnings (#6914)

This commit is contained in:
Tyler Michael Smith
2024-07-30 13:50:42 -04:00
committed by GitHub
parent 5cf9254a9c
commit cbbc904470
5 changed files with 8 additions and 5 deletions

View File

@@ -508,6 +508,7 @@ __inline__ __device__ Tout convert(const Tin& x) {
}
#endif
assert(false);
return {}; // Squash missing return statement warning
}
template <typename Tout, typename Tin, Fp8KVCacheDataType kv_dt>
@@ -520,6 +521,7 @@ __inline__ __device__ Tout scaled_convert(const Tin& x, const float scale) {
}
#endif
assert(false);
return {}; // Squash missing return statement warning
}
// The following macro is used to dispatch the conversion function based on