Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
slice_channel:
slice_packed_dim:
parameter_names_with_default_values:
DTYPE: float
NDIM: 3
Expand All @@ -8,4 +8,4 @@ slice_channel:
- VALUE: half
- VALUE: float
shader_variants:
- NAME: slice_channel
- NAME: slice_packed_dim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
slice_batch_height_width:
slice_unpacked_dim:
parameter_names_with_default_values:
DTYPE: float
NDIM: 3
Expand All @@ -7,4 +7,4 @@ slice_batch_height_width:
- VALUE: half
- VALUE: float
shader_variants:
- NAME: slice_batch_height_width
- NAME: slice_unpacked_dim
4 changes: 2 additions & 2 deletions backends/vulkan/runtime/graph/ops/impl/Slice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void add_slice_tensor_copy_node(
// if slice dim is the same as the packed dim, we can use the channel slice
if (dim_index == packed_dim_idx) {
// slice by channel
std::string kernel_name = "slice_channel";
std::string kernel_name = "slice_packed_dim";
kernel_name.reserve(kShaderNameReserve);
add_dtype_suffix(kernel_name, *t_out);

Expand Down Expand Up @@ -119,7 +119,7 @@ void add_slice_tensor_copy_node(
in_channel_stride = utils::div_up_4(in_channel_stride);
}

std::string kernel_name = "slice_batch_height_width";
std::string kernel_name = "slice_unpacked_dim";
kernel_name.reserve(kShaderNameReserve);
add_dtype_suffix(kernel_name, *t_out);

Expand Down
Loading