Skip to content

Commit 83d660c

Browse files
jorgep31415facebook-github-bot
authored andcommitted
Delete unused function in Types.h (#4116)
Summary: Pull Request resolved: #4116 TSIA ghstack-source-id: 232319219 exported-using-ghexport Reviewed By: SS-JIA Differential Revision: D59281545 fbshipit-source-id: 98fe615b8ca73eafff6ff54003d59210a91efc83
1 parent 5bcb28e commit 83d660c

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

backends/vulkan/runtime/api/Types.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -201,15 +201,6 @@ static constexpr GPUMemoryLayout kHeightPacked =
201201
static constexpr GPUMemoryLayout kChannelsPacked =
202202
GPUMemoryLayout::TENSOR_CHANNELS_PACKED;
203203

204-
/*
205-
* Given a GPUMemoryLayout, return the index of the dimension that is packed
206-
* along texels, assuming WHCN dimension order.
207-
*/
208-
template <typename T>
209-
T to_packed_dim_whcn_idx(const GPUMemoryLayout layout) {
210-
return static_cast<T>(layout);
211-
}
212-
213204
/*
214205
* Given a GPUMemoryLayout, return an offset that can be used to determine the
215206
* index of the dimension that is packed along texels, assuming NCHW dimension

0 commit comments

Comments
 (0)