Skip to content

Commit 8254293

Browse files
andreanicastrofacebook-github-bot
authored andcommitted
Add where layer to ops registry
Summary: To export models to the ET vulkan backend it is necessary that the op is added to the registry. This also registers the buffer implementation of the binary operations. Differential Revision: D75686562
1 parent d4906e2 commit 8254293

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

backends/vulkan/op_registry.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,17 @@ def register_binary_op(features: OpFeatures):
259259
valid_packed_dims=all_packed_dims,
260260
)
261261
features.resize_fn = True
262+
features.buffer_impl = True
263+
return features
264+
265+
266+
@update_features(exir_ops.edge.aten.where.self)
267+
def register_where_op(features: OpFeatures):
268+
features.texture_impl = TextureImplFeatures(
269+
valid_packed_dims=all_packed_dims,
270+
)
271+
features.buffer_impl = True
272+
features.resize_fn = True
262273
return features
263274

264275

0 commit comments

Comments
 (0)