Skip to content

Commit 4b252fa

Browse files
committed
minor update to vx_tensor.h
1 parent 0b03df4 commit 4b252fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernel/include/vx_tensor.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@ enum mem_layout {
2727
namespace detail {
2828

2929
template <typename F, std::size_t... Is>
30+
__attribute__((always_inline))
3031
constexpr void unroll_for_impl(std::index_sequence<Is...>, F&& f) {
3132
(f(std::integral_constant<std::size_t, Is>{}), ...);
3233
}
3334

3435
template <std::size_t N, typename F>
36+
__attribute__((always_inline))
3537
constexpr void unroll_for(F&& f) {
3638
unroll_for_impl(std::make_index_sequence<N>{}, std::forward<F>(f));
3739
}

0 commit comments

Comments
 (0)