diff --git a/include/ck_tile/core/tensor/tile_window.hpp b/include/ck_tile/core/tensor/tile_window.hpp index fed6816da5..c573ba8128 100644 --- a/include/ck_tile/core/tensor/tile_window.hpp +++ b/include/ck_tile/core/tensor/tile_window.hpp @@ -871,6 +871,16 @@ make_tile_window(const TensorView_& tensor_view, tensor_view, window_lengths, origin}; } +// duplicate tile window and replace its origin +template +CK_TILE_DEVICE constexpr auto +make_tile_window(const tile_window_with_static_lengths& tile_window, + const multi_index& origin) +{ + return tile_window_with_static_lengths{ + tile_window.get_bottom_tensor_view(), tile_window.get_window_lengths(), origin}; +} + template