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 7# TODO: delete this when pytorch pin advances 8 9from typing import Any 10 11import torch 12from torch._ops import HigherOrderOperator 13 14executorch_call_delegate: HigherOrderOperator 15 16def is_lowered_module(obj: Any) -> bool: ... 17def get_lowered_module_name( 18 root: torch.nn.Module, 19 # pyre-ignore: Undefined or invalid type [11]: Annotation `LoweredBackendModule` is not defined as a type. 20 lowered_module: LOWERED_BACKEND_MODULE_TYPE, # noqa 21) -> str: ... 22