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
2 changes: 1 addition & 1 deletion backends/vulkan/runtime/graph/ops/glsl/indexing.glslh
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ TensorIndex linear_idx_to_tensor_idx_channelslast_case(
uint linear_idx) {
TensorIndex tidx;

const uint dim_order[DIMLIMIT] = uint[DIMLIMIT](2, 0, 1, 3, 6, 5, 4, 7);
const uint dim_order[DIMLIMIT] = uint[DIMLIMIT](2, 0, 1, 3, 4, 5, 6, 7);

[[unroll]] for (int d = DIMLIMIT - 1; d >= 0; --d) {
uint dim = dim_order[d];
Expand Down
7 changes: 6 additions & 1 deletion backends/vulkan/test/op_tests/cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,12 @@ def get_permute_inputs():

# Pixel shuffle decomposed into view -> permute -> view, which leaves a
# packed dim of size 2.
highdim_test_suite = VkTestSuite([((1, 3, 2, 2, 5, 6), (0, 1, 4, 2, 5, 3))])
highdim_test_suite = VkTestSuite(
[
((1, 3, 2, 2, 5, 6), (0, 1, 4, 2, 5, 3)),
((2, 3, 2, 2, 5, 6), (0, 1, 4, 2, 5, 3)),
]
)
highdim_test_suite.layouts = test_suite.layouts
highdim_test_suite.storage_types = ["utils::kBuffer"]
highdim_test_suite.dtypes = ["at::kFloat", "at::kInt"]
Expand Down
Loading