Skip to content

Commit 29b3f83

Browse files
committed
Add documentation for offset generators
1 parent c849b1c commit 29b3f83

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/extension/numeric/test_fixture.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ auto create_kernel(std::initializer_list<T> const& values)
2828
return kernel;
2929
}
3030

31+
// Adds an offset similar to 1D row convolution with kernel {0, 0, 0, 0, 0, 0, 1, 0, 0}
32+
// having its anchor point at 5th element and boundary option as "extend_zero".
3133
template <typename SrcView, typename DstView>
3234
void row_conv1D_offset_img_generator(SrcView src_view, DstView dst_view, int const offset,
3335
std::ptrdiff_t start_row = 0, std::ptrdiff_t start_col = 0, std::ptrdiff_t end_row = -1,
@@ -53,6 +55,8 @@ void row_conv1D_offset_img_generator(SrcView src_view, DstView dst_view, int con
5355
}
5456
}
5557

58+
// Adds an offset similar to 1D column convolution with kernel {0, 0, 0, 0, 0, 0, 1, 0, 0}
59+
// having its anchor point at 5th element and boundary option as "extend_zero".
5660
template <typename SrcView, typename DstView>
5761
void col_conv1D_offset_img_generator(SrcView src_view, DstView dst_view, int const offset,
5862
std::ptrdiff_t start_row = 0, std::ptrdiff_t start_col = 0, std::ptrdiff_t end_row = -1,

0 commit comments

Comments
 (0)