mirror of
https://github.com/NVIDIA/cutlass.git
synced 2026-05-11 17:00:05 +00:00
Change the position of minus sign in line1549 array.h (#1091)
when I use cutlass::epilogue::thread::LinearCombinationSigmoid, I encounter the this error: cutlass/include/cutlass/array.h(1549): error: no operator "-" matches these operands Moving operator "-" from line 1549 to 1548 can solve this error
This commit is contained in:
@@ -1559,8 +1559,8 @@ struct negate<Array<half_t, N>> {
|
||||
}
|
||||
|
||||
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<half_t const &>(lhs_val);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user