Skip to content
Snippets Groups Projects
Commit 096757d6 authored by Maxence Naud's avatar Maxence Naud Committed by Olivier BICHLER
Browse files

fix: remove inline warning from 'update_unnormalized_coord_with_padding' function with gcc_9-4-0

parent 2a05d2de
No related branches found
No related tags found
2 merge requests!118v0.4.0,!103Multiple small fixes
Pipeline #59612 passed
...@@ -65,7 +65,7 @@ static float update_normalized_coord_with_padding(float coord, Aidge::GridSample ...@@ -65,7 +65,7 @@ static float update_normalized_coord_with_padding(float coord, Aidge::GridSample
return coord; return coord;
} }
static inline std::int64_t update_unnormalized_coord_with_padding(std::int64_t coord, std::int64_t size, Aidge::GridSample_Op::PaddingMode padding_mode) { static std::int64_t update_unnormalized_coord_with_padding(std::int64_t coord, std::int64_t size, Aidge::GridSample_Op::PaddingMode padding_mode) {
if (!in_bound(coord, 0, size)) { if (!in_bound(coord, 0, size)) {
// out of bound. switch padding mode // out of bound. switch padding mode
if (padding_mode == Aidge::GridSample_Op::PaddingMode::Border) { if (padding_mode == Aidge::GridSample_Op::PaddingMode::Border) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment