diff --git a/backends/vulkan/runtime/api/Types.h b/backends/vulkan/runtime/api/Types.h index 5e10dc50ea8..f58edff5b9e 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