From 55b77cf962a2df964ed142dab66ad6fab2a17e49 Mon Sep 17 00:00:00 2001 From: "PoYen, Chen" Date: Mon, 5 Aug 2024 15:57:03 +0000 Subject: [PATCH] Add another make_tile_window() --- include/ck_tile/core/tensor/tile_window.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) 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