diff --git a/include/cutlass/array.h b/include/cutlass/array.h index e5132d9d..63ba8089 100644 --- a/include/cutlass/array.h +++ b/include/cutlass/array.h @@ -1559,8 +1559,8 @@ struct negate> { } if constexpr (N % 2) { - half_t x = lhs[N - 1]; - __half lhs_val = -reinterpret_cast<__half const &>(x); + half_t x = -lhs[N - 1]; + __half lhs_val = reinterpret_cast<__half const &>(x); result[N - 1] = reinterpret_cast(lhs_val); }