xref: /aosp_15_r20/external/executorch/backends/example/example_operators/op_base.py (revision 523fa7a60841cd1ecfb9cc4201f1ca8b03ed023a)
1# Copyright (c) Meta Platforms, Inc. and affiliates.
2# All rights reserved.
3#
4# This source code is licensed under the BSD-style license found in the
5# LICENSE file in the root directory of this source tree.
6
7from dataclasses import dataclass
8from typing import Callable, Tuple
9
10
11@dataclass
12class OpBase:
13    pattern: Tuple[Callable]
14    annotate_handle: Callable
15    permuate_memory_format: bool = False
16