Skip to content

Commit

Permalink
fallback for some errors
Browse files Browse the repository at this point in the history
  • Loading branch information
guodongliang committed Nov 7, 2024
1 parent 58bab9a commit bed436b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ntt/include/nncase/ntt/arch/x86_64/ukernels.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,11 @@ class u_pack<M, N, MStrides, true, float, vector<float, 8>> {
public:
constexpr void operator()(const float *input,
vector<float, 8> *output) noexcept {
auto out_ptr = reinterpret_cast<float *>(output);

for (size_t j = 0; j < N; j++) {
const float *input_ptr = nullptr;
for (size_t i = 0; i < M; i++) {
input_ptr = input + i * MStrides;
*(out_ptr++) = *input_ptr;
output[j](i) = input[i * MStrides + j];
}
input_ptr++;
}

if constexpr (M < 8) {
Expand Down

0 comments on commit bed436b

Please sign in to comment.