Skip to content

Commit 474479a

Browse files
committed
Update base for Update on "[ET-VK] Add reshape functions for transformers related operators"
## Changes * Implement resize functions for several operators used in Transformers models ## Motivation Be able to support batched prefill for llama models. Differential Revision: [D75686049](https://our.internmc.facebook.com/intern/diff/D75686049/) [ghstack-poisoned]
1 parent 55b3621 commit 474479a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

backends/vulkan/runtime/graph/ops/DispatchNode.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@ void DispatchNode::encode(ComputeGraph* graph) {
7575
}
7676

7777
void DispatchNode::write_push_constant_data() {
78-
if (push_constants_.empty()) {
79-
return;
80-
}
81-
8278
push_constants_offset_ = 0;
8379
for (const auto& push_constant : push_constants_) {
8480
push_constants_offset_ += push_constant.write(

0 commit comments

Comments
 (0)