We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b03df4 commit 4b252faCopy full SHA for 4b252fa
kernel/include/vx_tensor.h
@@ -27,11 +27,13 @@ enum mem_layout {
27
namespace detail {
28
29
template <typename F, std::size_t... Is>
30
+ __attribute__((always_inline))
31
constexpr void unroll_for_impl(std::index_sequence<Is...>, F&& f) {
32
(f(std::integral_constant<std::size_t, Is>{}), ...);
33
}
34
35
template <std::size_t N, typename F>
36
37
constexpr void unroll_for(F&& f) {
38
unroll_for_impl(std::make_index_sequence<N>{}, std::forward<F>(f));
39
0 commit comments