From a6360c3e3b18b10f8f7eaed434e47a0052e38502 Mon Sep 17 00:00:00 2001 From: guodongliang Date: Wed, 27 Nov 2024 18:11:08 +0800 Subject: [PATCH] try again for macos build --- ntt/include/nncase/ntt/tensor_ops.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ntt/include/nncase/ntt/tensor_ops.h b/ntt/include/nncase/ntt/tensor_ops.h index d765d244a..4024190fd 100644 --- a/ntt/include/nncase/ntt/tensor_ops.h +++ b/ntt/include/nncase/ntt/tensor_ops.h @@ -311,7 +311,8 @@ struct cast { } template - requires(sizeof...(Tensors1) > 1) + requires(sizeof...(Tensors1) > 1 && + (std::is_const_v> && ...)) constexpr auto operator()(const Tensors1 &...tensors) const noexcept { static_assert(((Tensors1::rank() == 1) && ...), "All tensors must have rank 1"); @@ -323,7 +324,8 @@ struct cast { } template - requires(sizeof...(Tensors2) > 1) + requires(sizeof...(Tensors2) > 1 && + (!std::is_const_v> && ...)) constexpr void operator()(const TTensor1 &v, Tensors2 &...outputs) const noexcept { static_assert(TTensor1::rank() == 1, "Input tensor must have rank 1");