diff --git a/impl/ascend/aclnn/adaptor.hpp b/impl/ascend/aclnn/adaptor.hpp index f0c4ff953..6ef958bc8 100644 --- a/impl/ascend/aclnn/adaptor.hpp +++ b/impl/ascend/aclnn/adaptor.hpp @@ -209,8 +209,8 @@ decltype(auto) convertType(T&& param) { } } -template -void releaseConverted(T&& param [[maybe_unused]]) {} // no conversion, do nothing +template +void releaseConverted(X&& param [[maybe_unused]]) {} // no conversion, do nothing #define IMPL_ASCEND_ACLNN_REGISTER_DESTRUCTOR(Type) \ inline void releaseConverted(const acl##Type* param) { \