Skip to content

Commit 81e2ce4

Browse files
author
morelos
committed
Update on "[ET-VK][Ops] aten.var.dim from scratch implementation"
Created the var.dim operator (which functionally supports var) from scratch Differential Revision: [D75244137](https://our.internmc.facebook.com/intern/diff/D75244137/) [ghstack-poisoned]
1 parent 350313b commit 81e2ce4

File tree

1 file changed

+2
-6
lines changed
  • backends/vulkan/runtime/graph/ops/impl

1 file changed

+2
-6
lines changed

backends/vulkan/runtime/graph/ops/impl/Var.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ void add_var_buffer_node(
5656

5757
std::vector<PushConstantDataInfo> push_constants;
5858
int32_t unbiased_int = static_cast<int32_t>(unbiased);
59-
push_constants.emplace_back(
60-
PushConstantDataInfo(
61-
&unbiased_int, sizeof(unbiased_int)));
59+
push_constants.emplace_back(&unbiased_int, sizeof(unbiased_int));
6260

6361
graph.execute_nodes().emplace_back(new DispatchNode(
6462
graph,
@@ -133,9 +131,7 @@ void add_var_texture_node(
133131

134132
std::vector<PushConstantDataInfo> push_constants;
135133
int32_t unbiased_int = static_cast<int32_t>(unbiased);
136-
push_constants.emplace_back(
137-
PushConstantDataInfo(
138-
&unbiased_int, sizeof(unbiased_int)));
134+
push_constants.emplace_back(&unbiased_int, sizeof(unbiased_int));
139135

140136
graph.execute_nodes().emplace_back(new DispatchNode(
141137
graph,

0 commit comments

Comments
 (0)