Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions include/onnxruntime/core/framework/int2.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <type_traits>
#include "core/common/common.h"
#include <gsl/gsl>
#include "onnxruntime_config.h"

Check warning on line 10 in include/onnxruntime/core/framework/int2.h

View workflow job for this annotation

GitHub Actions / Optional Lint C++

[cpplint] reported by reviewdog 🐶 Include the directory when naming header files [build/include_subdir] [4] Raw Output: include/onnxruntime/core/framework/int2.h:10: Include the directory when naming header files [build/include_subdir] [4]

namespace onnxruntime {

Expand Down Expand Up @@ -137,8 +138,16 @@
const size_t full_quads = src.size() / 4;

// Process complete groups of 4 elements

for (; dst_i < full_quads; dst_i++) {
#if defined(__GNUC__) && defined(HAS_ARRAY_BOUNDS)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
#endif
dst[dst_i] = Int2x4Base<Signed>(src[src_i], src[src_i + 1], src[src_i + 2], src[src_i + 3]);
#if defined(__GNUC__) && defined(HAS_ARRAY_BOUNDS)
#pragma GCC diagnostic pop
#endif
src_i += 4;
}

Expand Down
Loading