From 41ccfec3a3a60566d8d24a8338d4bc3ffe94ae2e Mon Sep 17 00:00:00 2001 From: Jorge Pineda Date: Tue, 2 Jul 2024 09:34:03 -0700 Subject: [PATCH] [ET-VK] Delete unused function in `Types.h` TSIA Differential Revision: [D59281545](https://our.internmc.facebook.com/intern/diff/D59281545/) [ghstack-poisoned] --- backends/vulkan/runtime/api/Types.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/backends/vulkan/runtime/api/Types.h b/backends/vulkan/runtime/api/Types.h index 5e10dc50ea..f58edff5b9 100644 --- a/backends/vulkan/runtime/api/Types.h +++ b/backends/vulkan/runtime/api/Types.h @@ -201,15 +201,6 @@ static constexpr GPUMemoryLayout kHeightPacked = static constexpr GPUMemoryLayout kChannelsPacked = GPUMemoryLayout::TENSOR_CHANNELS_PACKED; -/* - * Given a GPUMemoryLayout, return the index of the dimension that is packed - * along texels, assuming WHCN dimension order. - */ -template -T to_packed_dim_whcn_idx(const GPUMemoryLayout layout) { - return static_cast(layout); -} - /* * Given a GPUMemoryLayout, return an offset that can be used to determine the * index of the dimension that is packed along texels, assuming NCHW dimension