Skip to content

Commit

Permalink
try again for macos build
Browse files Browse the repository at this point in the history
  • Loading branch information
guodongliang committed Nov 27, 2024
1 parent 6fc4503 commit a6360c3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ntt/include/nncase/ntt/tensor_ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,8 @@ struct cast<TTensor1, TTensor2> {
}

template <typename... Tensors1>
requires(sizeof...(Tensors1) > 1)
requires(sizeof...(Tensors1) > 1 &&
(std::is_const_v<std::remove_reference_t<Tensors1>> && ...))
constexpr auto operator()(const Tensors1 &...tensors) const noexcept {
static_assert(((Tensors1::rank() == 1) && ...),
"All tensors must have rank 1");
Expand All @@ -323,7 +324,8 @@ struct cast<TTensor1, TTensor2> {
}

template <typename... Tensors2>
requires(sizeof...(Tensors2) > 1)
requires(sizeof...(Tensors2) > 1 &&
(!std::is_const_v<std::remove_reference_t<Tensors2>> && ...))
constexpr void operator()(const TTensor1 &v,
Tensors2 &...outputs) const noexcept {
static_assert(TTensor1::rank() == 1, "Input tensor must have rank 1");
Expand Down

0 comments on commit a6360c3

Please sign in to comment.