1*523fa7a6SAndroid Build Coastguard Worker# Copyright (c) Meta Platforms, Inc. and affiliates. 2*523fa7a6SAndroid Build Coastguard Worker# All rights reserved. 3*523fa7a6SAndroid Build Coastguard Worker# 4*523fa7a6SAndroid Build Coastguard Worker# This source code is licensed under the BSD-style license found in the 5*523fa7a6SAndroid Build Coastguard Worker# LICENSE file in the root directory of this source tree. 6*523fa7a6SAndroid Build Coastguard Worker 7*523fa7a6SAndroid Build Coastguard Workerfrom typing import Any 8*523fa7a6SAndroid Build Coastguard Worker 9*523fa7a6SAndroid Build Coastguard Workerfrom executorch.exir.capture import ( 10*523fa7a6SAndroid Build Coastguard Worker _capture_legacy_do_not_use, 11*523fa7a6SAndroid Build Coastguard Worker CallSpec, 12*523fa7a6SAndroid Build Coastguard Worker capture, 13*523fa7a6SAndroid Build Coastguard Worker CaptureConfig, 14*523fa7a6SAndroid Build Coastguard Worker EdgeCompileConfig, 15*523fa7a6SAndroid Build Coastguard Worker ExecutorchBackendConfig, 16*523fa7a6SAndroid Build Coastguard Worker) 17*523fa7a6SAndroid Build Coastguard Workerfrom executorch.exir.emit import emit_program, EmitterOutput 18*523fa7a6SAndroid Build Coastguard Workerfrom executorch.exir.program import ( 19*523fa7a6SAndroid Build Coastguard Worker _to_edge, 20*523fa7a6SAndroid Build Coastguard Worker edge_to_executorch_passes, 21*523fa7a6SAndroid Build Coastguard Worker EdgeProgramManager, 22*523fa7a6SAndroid Build Coastguard Worker ExecutorchProgram, 23*523fa7a6SAndroid Build Coastguard Worker ExecutorchProgramManager, 24*523fa7a6SAndroid Build Coastguard Worker ExirExportedProgram, 25*523fa7a6SAndroid Build Coastguard Worker to_edge, 26*523fa7a6SAndroid Build Coastguard Worker to_edge_transform_and_lower, 27*523fa7a6SAndroid Build Coastguard Worker) 28*523fa7a6SAndroid Build Coastguard Workerfrom executorch.exir.serde.serialize import load, save 29*523fa7a6SAndroid Build Coastguard Workerfrom executorch.exir.tracer import ExirDynamoConfig 30*523fa7a6SAndroid Build Coastguard Workerfrom torch.export import ExportedProgram, ExportGraphSignature 31*523fa7a6SAndroid Build Coastguard Worker 32*523fa7a6SAndroid Build Coastguard WorkerValue = Any 33*523fa7a6SAndroid Build Coastguard Worker 34*523fa7a6SAndroid Build Coastguard Worker__all__ = [ 35*523fa7a6SAndroid Build Coastguard Worker "emit_program", 36*523fa7a6SAndroid Build Coastguard Worker "EmitterOutput", 37*523fa7a6SAndroid Build Coastguard Worker "capture", 38*523fa7a6SAndroid Build Coastguard Worker "_capture_legacy_do_not_use", 39*523fa7a6SAndroid Build Coastguard Worker "CallSpec", 40*523fa7a6SAndroid Build Coastguard Worker "ExportedProgram", 41*523fa7a6SAndroid Build Coastguard Worker "ExirExportedProgram", 42*523fa7a6SAndroid Build Coastguard Worker "ExecutorchProgram", 43*523fa7a6SAndroid Build Coastguard Worker "ExportGraphSignature", 44*523fa7a6SAndroid Build Coastguard Worker "_to_edge", 45*523fa7a6SAndroid Build Coastguard Worker "to_edge", 46*523fa7a6SAndroid Build Coastguard Worker "to_edge_transform_and_lower", 47*523fa7a6SAndroid Build Coastguard Worker "EdgeProgramManager", 48*523fa7a6SAndroid Build Coastguard Worker "ExecutorchProgramManager", 49*523fa7a6SAndroid Build Coastguard Worker "edge_to_executorch_passes", 50*523fa7a6SAndroid Build Coastguard Worker "CaptureConfig", 51*523fa7a6SAndroid Build Coastguard Worker "EdgeCompileConfig", 52*523fa7a6SAndroid Build Coastguard Worker "ExecutorchBackendConfig", 53*523fa7a6SAndroid Build Coastguard Worker "Value", 54*523fa7a6SAndroid Build Coastguard Worker "ExirDynamoConfig", 55*523fa7a6SAndroid Build Coastguard Worker "load", 56*523fa7a6SAndroid Build Coastguard Worker "save", 57*523fa7a6SAndroid Build Coastguard Worker] 58