Skip to content

Commit 9ed0fde

Browse files
author
jorgep31415
committed
Update on "[ET-VK] Fix VulkanBackend args output index"
The one in the `VK_CHECK_COND` expression was wrong. Use a variable for easier tracking. Differential Revision: [D67126361](https://our.internmc.facebook.com/intern/diff/D67126361/) [ghstack-poisoned]
1 parent e2dc9c8 commit 9ed0fde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backends/vulkan/runtime/VulkanBackend.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ class VulkanBackend final : public ::executorch::runtime::BackendInterface {
582582
compute_graph->execute();
583583

584584
for (size_t i = 0; i < compute_graph->outputs().size(); i++) {
585-
const size_t o = num_inputs + i;
585+
const size_t o = i + num_inputs;
586586
const ValueRef oref = compute_graph->outputs()[i].value;
587587
if (compute_graph->val_is_tensor(oref)) {
588588
VK_CHECK_COND(args[o]->isTensor());

0 commit comments

Comments
 (0)