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.
2 parents f7233b0 + 355e0a8 commit 368bc7bCopy full SHA for 368bc7b
lib/core/covfie/core/backend/transformer/strided.hpp
@@ -82,7 +82,12 @@ struct strided {
82
83
for (std::size_t i = 0; i < covariant_output_t::dimensions; ++i)
84
{
85
- res[idx][i] = nother.at(t)[i];
+ if constexpr (covariant_output_t::dimensions == 1 && !std::unsigned_integral<std::decay_t<decltype(t)>>)
86
+ {
87
+ res[idx][i] = nother.at(t[0])[i];
88
+ } else {
89
+ res[idx][i] = nother.at(t)[i];
90
+ }
91
}
92
},
93
sizes
0 commit comments