Skip to content

Commit bf9e4b1

Browse files
author
zhangyue
committed
fix(nvidia): revert std::forward workaround for NVCC 12.6 bug
The CI image has not been rebuilt with the 25.12 base yet, so NVCC 12.6 (in 24.10-py3) still instantiates the std::forward call inside if-constexpr false branches. Drop std::forward — all operator constructors take parameters by value, so lvalue pass is equivalent.
1 parent df8bcbc commit bf9e4b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/operator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class Operator : public OperatorBase {
145145
const Tensor&, Args...>) {
146146
op_ptr = std::make_unique<
147147
Operator<Key, kDev, kImplementationIndex>>(
148-
tensor, std::forward<Args>(args)...);
148+
tensor, args...);
149149
} else {
150150
assert(false &&
151151
"operator is not implemented for this device and "

0 commit comments

Comments
 (0)