Skip to content
Closed
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
1 change: 1 addition & 0 deletions backends/vulkan/runtime/graph/ops/impl/Permute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ void permute(ComputeGraph& graph, const std::vector<ValueRef>& args) {
}

REGISTER_OPERATORS {
VK_REGISTER_OP(aten.permute.default, permute);
VK_REGISTER_OP(aten.permute_copy.default, permute);
}

Expand Down
1 change: 1 addition & 0 deletions backends/vulkan/test/op_tests/cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,5 +206,6 @@ def get_permute_inputs():
"aten.full.default": get_full_inputs(),
"aten.select.int": get_select_int_inputs(),
"aten.select_copy.int": get_select_int_inputs(),
"aten.permute.default": get_permute_inputs(),
"aten.permute_copy.default": get_permute_inputs(),
}
4 changes: 3 additions & 1 deletion backends/vulkan/test/op_tests/utils/codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,9 @@ def declare_vk_out_for(self, ref: Union[ValueRef, List[ValueRef]]) -> str:
ret_str += self.declare_vk_out_for(r)
return ret_str

return f"at::Tensor vk_{ref.name} = at::empty_like({ref.src_cpp_name});\n"
ret_str = f"at::Tensor vk_{ref.name} = at::empty_like({ref.src_cpp_name})"
ret_str += ".contiguous();\n"
return ret_str

def copy_from_staging(self, ref: ValueRefList) -> str:
if isinstance(ref, list):
Expand Down