xref: /aosp_15_r20/external/executorch/examples/portable/custom_ops/custom_ops.yaml (revision 523fa7a60841cd1ecfb9cc4201f1ca8b03ed023a)
1# Copyright (c) Meta Platforms, Inc. and affiliates.
2#
3# See the kernels/portable/README.md for a description of the syntax used
4# by this file.
5
6# important to keep the namespace
7- func: my_ops::mul3.out(Tensor input, *, Tensor(a!) output) -> Tensor(a!)
8  kernels:
9    - arg_meta: null
10      kernel_name: custom::mul3_out_impl # custom_op_1.cpp, sub-namespace native:: is auto-added
11
12- func: my_ops::mul4.out(Tensor input, *, Tensor(a!) output) -> Tensor(a!)
13  kernels:
14    - arg_meta: null
15      kernel_name: custom::mul4_out_impl # custom_op_2.cpp
16