Skip to content

Commit bf64819

Browse files
authored
Rename directory "executorch/sdk" to "executorch/devtools"
Differential Revision: D60485375 Pull Request resolved: #4823
1 parent bfc5b17 commit bf64819

File tree

125 files changed

+393
-375
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+393
-375
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ if(EXECUTORCH_BUILD_SDK)
617617
ON
618618
CACHE BOOL "EXECUTORCH_BUILD_EXTENSION_DATA_LOADER" FORCE
619619
)
620-
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/sdk)
620+
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/devtools)
621621
endif()
622622

623623
if(EXECUTORCH_BUILD_EXTENSION_APPLE)
@@ -676,7 +676,7 @@ if(EXECUTORCH_BUILD_PYBIND)
676676
endif()
677677

678678
if(NOT EXECUTORCH_BUILD_SDK)
679-
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/sdk)
679+
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/devtools)
680680
endif()
681681

682682
# find pytorch lib, to allow pybind to take at::Tensor as input/output

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ tools.
9393
├── schema # ExecuTorch PTE file format flatbuffer
9494
schemas.
9595
├── scripts # Utility scripts for size management, dependency management, etc.
96-
├── sdk # Model profiling, debugging, and introspection.
96+
├── devtools # Model profiling, debugging, and introspection.
9797
├── shim # Compatibility layer between OSS and Internal builds
9898
├── test # Broad scoped end-to-end tests.
9999
├── third-party # Third-party dependencies.

backends/apple/mps/TARGETS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ runtime.python_test(
9595
"//executorch/examples/models:models",
9696
"//executorch/exir/tests:models",
9797
"//executorch/extension/export_util:export_util",
98-
"//executorch/sdk:lib",
99-
"//executorch/sdk/bundled_program/serialize:lib",
98+
"//executorch/devtools:lib",
99+
"//executorch/devtools/bundled_program/serialize:lib",
100100
"fbsource//third-party/pypi/pytest:pytest",
101101
],
102102
)

backends/apple/mps/targets.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def define_common_targets(is_xplat = False, platforms = []):
4747
"//executorch/exir/backend:backend_lib",
4848
"//executorch/extension/pybindings/...",
4949
"//executorch/runtime/backend/...",
50-
"//executorch/sdk/runners/...",
50+
"//executorch/devtools/runners/...",
5151
"//executorch/test/...",
5252
"@EXECUTORCH_CLIENTS",
5353
],

backends/apple/mps/test/test_mps_utils.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
import torch
1313
from executorch.backends.apple.mps import MPSBackend
1414
from executorch.backends.apple.mps.partition import MPSPartitioner
15+
from executorch.devtools import BundledProgram
16+
from executorch.devtools.bundled_program.config import MethodTestCase, MethodTestSuite
17+
from executorch.devtools.bundled_program.serialize import (
18+
serialize_from_bundled_program_to_flatbuffer,
19+
)
1520
from executorch.exir import EdgeCompileConfig, ExirExportedProgram, to_edge
1621
from executorch.exir.backend.backend_api import to_backend
1722
from executorch.exir.backend.backend_details import CompileSpec
1823
from executorch.exir.capture._config import ExecutorchBackendConfig
1924
from executorch.extension.export_util.utils import export_to_edge
20-
from executorch.sdk import BundledProgram
21-
from executorch.sdk.bundled_program.config import MethodTestCase, MethodTestSuite
22-
from executorch.sdk.bundled_program.serialize import (
23-
serialize_from_bundled_program_to_flatbuffer,
24-
)
2525
from torch.export import export
2626

2727
# Config for Capturing the weights, will be moved in the future

backends/cadence/cadence_runner/cadence_runner.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222

2323
#include <gflags/gflags.h>
2424

25+
#include <executorch/devtools/bundled_program/bundled_program.h>
26+
#include <executorch/devtools/etdump/etdump_flatcc.h>
2527
#include <executorch/extension/data_loader/buffer_data_loader.h>
2628
#include <executorch/runtime/executor/method.h>
2729
#include <executorch/runtime/executor/program.h>
2830
#include <executorch/runtime/platform/log.h>
2931
#include <executorch/runtime/platform/runtime.h>
30-
#include <executorch/sdk/bundled_program/bundled_program.h>
31-
#include <executorch/sdk/etdump/etdump_flatcc.h>
3232

3333
static uint8_t method_allocator_pool[4 * 1024U * 1024U]; // 4MB
3434

backends/cadence/cadence_runner/targets.bzl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ def define_common_targets():
1919
visibility = ["PUBLIC"],
2020
deps = [
2121
"fbsource//arvr/third-party/gflags:gflags",
22-
"fbsource//xplat/executorch/kernels/portable:generated_lib",
23-
"fbsource//xplat/executorch/runtime/executor:program",
22+
"fbsource//xplat/executorch/devtools/etdump:etdump_flatcc",
23+
"fbsource//xplat/executorch/devtools/bundled_program:runtime",
2424
"fbsource//xplat/executorch/extension/data_loader:file_data_loader",
2525
"fbsource//xplat/executorch/extension/data_loader:buffer_data_loader",
26+
"fbsource//xplat/executorch/kernels/portable:generated_lib",
27+
"fbsource//xplat/executorch/runtime/executor:program",
2628
"fbsource//xplat/executorch/util:util",
27-
"fbsource//xplat/executorch/sdk/etdump:etdump_flatcc",
28-
"fbsource//xplat/executorch/sdk/bundled_program:runtime",
2929
],
3030
)

backends/cadence/runtime/TARGETS

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ python_library(
1313
typing = True,
1414
deps = [
1515
"//caffe2:torch",
16+
"//executorch/devtools/bundled_program:config",
17+
"//executorch/devtools/bundled_program:core",
18+
"//executorch/devtools/bundled_program/serialize:lib",
1619
"//executorch/exir:lib",
17-
"//executorch/sdk/bundled_program:config",
18-
"//executorch/sdk/bundled_program:core",
19-
"//executorch/sdk/bundled_program/serialize:lib",
2020
],
2121
)

backends/cadence/runtime/executor.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,13 @@
1818

1919
import torch
2020

21-
from executorch.exir import ExecutorchProgram, ExecutorchProgramManager
22-
23-
from executorch.sdk.bundled_program.config import MethodTestCase, MethodTestSuite
24-
from executorch.sdk.bundled_program.core import BundledProgram
21+
from executorch.devtools.bundled_program.config import MethodTestCase, MethodTestSuite
22+
from executorch.devtools.bundled_program.core import BundledProgram
2523

26-
from executorch.sdk.bundled_program.serialize import (
24+
from executorch.devtools.bundled_program.serialize import (
2725
serialize_from_bundled_program_to_flatbuffer,
2826
)
27+
from executorch.exir import ExecutorchProgram, ExecutorchProgramManager
2928

3029
# If quiet is true, suppress the printing of stdout and stderr output.
3130
quiet = False

backends/cadence/runtime/runtime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818

1919
from executorch.backends.cadence.runtime import utils
2020
from executorch.backends.cadence.runtime.executor import Executor
21+
from executorch.devtools import Inspector
2122
from executorch.exir import ExecutorchProgramManager
2223
from executorch.exir._serialize._program import deserialize_pte_binary
2324
from executorch.exir.schema import DataLocation
24-
from executorch.sdk import Inspector
2525

2626
from numpy import ndarray
2727

0 commit comments

Comments
 (0)