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