Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 34 additions & 2 deletions export/TARGETS
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ runtime.python_library(
"//caffe2:torch",
"//executorch/exir/backend:backend_api",
"//executorch/exir:pass_manager",
"//executorch/devtools/backend_debug:delegation_info",
"//executorch/extension/export_util:export_util",
]
)
Expand All @@ -31,11 +30,35 @@ runtime.python_library(
],
deps = [
":recipe",
":stages",
":types",
"//executorch/runtime:runtime",
":recipe_registry"
]
)


runtime.python_library(
name = "stages",
srcs = [
"stages.py",
],
visibility = [
"//executorch/...",
"@EXECUTORCH_CLIENTS",
],
deps = [
":recipe",
":types",
"//executorch/devtools/backend_debug:delegation_info",
"//executorch/exir/backend:backend_api",
"//executorch/exir:pass_manager",
"//caffe2:torch",
"//executorch/devtools/backend_debug:delegation_info",
]
)


runtime.python_library(
name = "lib",
srcs = [
Expand All @@ -48,8 +71,10 @@ runtime.python_library(
deps = [
":export",
":recipe",
":stages",
":recipe_registry",
":recipe_provider"
":recipe_provider",
":types",
],
)

Expand Down Expand Up @@ -78,3 +103,10 @@ runtime.python_library(
":recipe",
]
)

runtime.python_library(
name = "types",
srcs = [
"types.py",
],
)
3 changes: 2 additions & 1 deletion export/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
from .recipe import ExportRecipe, QuantizationRecipe, RecipeType
from .recipe_provider import BackendRecipeProvider
from .recipe_registry import recipe_registry

from .types import StageType

__all__ = [
"StageType",
"ExportRecipe",
"QuantizationRecipe",
"ExportSession",
Expand Down
Loading
Loading