Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions backends/vulkan/runtime/api/Types.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <typename T>
T to_packed_dim_whcn_idx(const GPUMemoryLayout layout) {
return static_cast<T>(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
Expand Down