Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 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
5 changes: 3 additions & 2 deletions backends/vulkan/_passes/tag_memory_meta_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,10 @@ def get_arg_tensor_source_repset(
"""
arg_node = op_node.args[arg_i]

# For non-tensor arguments, return ANY_STORAGE
# For non-tensor arguments, return ALL_STORAGES_REPSET so that the respset does
# not appear to be empty.
if not utils.is_tensor_arg_node(arg_node):
return utils.ANY_STORAGE
return utils.ALL_STORAGES_REPSET

# Special case for cat - use the first tensor in the list as representative
if isinstance(arg_node, list):
Expand Down
4 changes: 1 addition & 3 deletions backends/vulkan/op_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,7 @@ def register_cat_op():
[
exir_ops.edge.aten.select_copy.int,
exir_ops.edge.aten.slice_copy.Tensor,
exir_ops.edge.aten.split_with_sizes_copy.default,
]
)
def register_transfer_ops():
Expand Down Expand Up @@ -782,10 +783,7 @@ def register_ported_op():
# Ops ported from PyTorch Vulkan backend. These ops are in a separate registry because they support all packed dimensions
@update_features(
[
# Tensor combination
exir_ops.edge.aten.repeat.default,
exir_ops.edge.aten.split_with_sizes_copy.default,
exir_ops.edge.aten.split.Tensor,
]
)
def register_ported_op_all_packed_dims():
Expand Down
11 changes: 11 additions & 0 deletions backends/vulkan/runtime/graph/ops/glsl/common.glslh
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,15 @@ int quantize_and_pack(const vec4 vals, const float inv_scale, const int zp) {
return pack_into_int32(quantized);
}

#ifdef DEBUG_MODE

#define printf debugPrintfEXT

void printVec4(vec4 texel) {
debugPrintfEXT(
"texel: %f, %f, %f, %f\\n", texel.x, texel.y, texel.z, texel.w);
}

#endif // DEBUG_MODE

#endif // COMMON_GLSLH
80 changes: 0 additions & 80 deletions backends/vulkan/runtime/graph/ops/glsl/copy_channel_offset.glsl

This file was deleted.

12 changes: 0 additions & 12 deletions backends/vulkan/runtime/graph/ops/glsl/copy_channel_offset.yaml

This file was deleted.

68 changes: 0 additions & 68 deletions backends/vulkan/runtime/graph/ops/glsl/copy_offset.glsl

This file was deleted.

17 changes: 0 additions & 17 deletions backends/vulkan/runtime/graph/ops/glsl/copy_offset.yaml

This file was deleted.

135 changes: 0 additions & 135 deletions backends/vulkan/runtime/graph/ops/glsl/copy_packed_dim_offset.glsl

This file was deleted.

This file was deleted.

Loading
Loading