Skip to content

Commit 6328d41

Browse files
Olivia-liufacebook-github-bot
authored andcommitted
Rename "SDK" -> "Developer Tools" in documentations (OSS files) (#5238)
Summary: Pull Request resolved: #5238 Part of the bigger "sdk" rename to "devtools" task, context in [post](https://fb.workplace.com/groups/222849770514616/permalink/467450562721201/). This diff replaces "SDK" with "Developer Tools" in the documentations. Reviewed By: dbort Differential Revision: D62462792 fbshipit-source-id: 18a46779a9e6d7fb782f563fe73f7c612afc4838
1 parent 338ef26 commit 6328d41

22 files changed

+62
-54
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ option(EXECUTORCH_BUILD_KERNELS_OPTIMIZED "Build the optimized kernels" OFF)
197197

198198
option(EXECUTORCH_BUILD_KERNELS_QUANTIZED "Build the quantized kernels" OFF)
199199

200-
option(EXECUTORCH_BUILD_SDK "Build the ExecuTorch SDK")
200+
option(EXECUTORCH_BUILD_SDK "Build the ExecuTorch Developer Tools")
201201

202202
option(EXECUTORCH_BUILD_SIZE_TEST "Build the size test" OFF)
203203

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ Key value propositions of ExecuTorch are:
1010
- **Portability:** Compatibility with a wide variety of computing platforms,
1111
from high-end mobile phones to highly constrained embedded systems and
1212
microcontrollers.
13-
- **Productivity:** Enabling developers to use the same toolchains and SDK from
14-
PyTorch model authoring and conversion, to debugging and deployment to a wide
15-
variety of platforms.
13+
- **Productivity:** Enabling developers to use the same toolchains and Developer
14+
Tools from PyTorch model authoring and conversion, to debugging and deployment
15+
to a wide variety of platforms.
1616
- **Performance:** Providing end users with a seamless and high-performance
1717
experience due to a lightweight runtime and utilizing full hardware
1818
capabilities such as CPUs, NPUs, and DSPs.

devtools/debug_format/base_schema.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
# This source code is licensed under the BSD-style license found in the
55
# LICENSE file in the root directory of this source tree.
66

7+
# pyre-unsafe
8+
79
"""
8-
Base Intermediate Representation for Productivity SDK consumers
10+
Base Intermediate Representation for Developer Tools consumers
911
(e.g. TensorBoard, Terminal Debugger)
1012
"""
1113

devtools/debug_format/et_schema.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
# This source code is licensed under the BSD-style license found in the
55
# LICENSE file in the root directory of this source tree.
66

7+
# pyre-unsafe
8+
79
"""
8-
Intermediate Representation of ExecuTorch Concepts in Productivity SDK
10+
Intermediate Representation of ExecuTorch Concepts in Developer Tools
911
"""
1012

1113
from __future__ import annotations

devtools/etrecord/_etrecord.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# This source code is licensed under the BSD-style license found in the
55
# LICENSE file in the root directory of this source tree.
66

7+
# pyre-unsafe
8+
79
import json
810
import os
911
import pickle
@@ -182,7 +184,7 @@ def generate_etrecord(
182184
is the closest graph module representation of what is eventually run on the device.
183185
In addition to all the graph modules, we also serialize the program buffer, which the users
184186
can provide to the ExecuTorch runtime to run the model, and the debug handle map
185-
for SDK tooling usage.
187+
for Developer Tools usage.
186188
187189
Args:
188190
et_record: Path to where the `ETRecord` file will be saved to.
@@ -201,7 +203,7 @@ def generate_etrecord(
201203

202204
etrecord_zip = ZipFile(et_record, "w")
203205
# Write the magic file identifier that will be used to verify that this file
204-
# is an etrecord when it's used later in the SDK tooling.
206+
# is an etrecord when it's used later in the Developer Tools.
205207
etrecord_zip.writestr(ETRecordReservedFileNames.ETRECORD_IDENTIFIER, "")
206208

207209
if export_modules is not None:

devtools/etrecord/tests/etrecord_test.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# This source code is licensed under the BSD-style license found in the
55
# LICENSE file in the root directory of this source tree.
66

7+
# pyre-unsafe
8+
79
import copy
810
import json
911
import tempfile
@@ -75,7 +77,7 @@ def get_test_model_with_manager(self):
7577
return (aten_dialect, edge_program_copy, edge_program.to_executorch())
7678

7779
# Serialized and deserialized graph modules are not completely the same, so we check
78-
# that they are close enough and match especially on the parameters we care about in the SDK.
80+
# that they are close enough and match especially on the parameters we care about in the Developer Tools.
7981
def check_graph_closeness(self, graph_a, graph_b):
8082
self.assertEqual(len(graph_a.graph.nodes), len(graph_b.graph.nodes))
8183
for node_a, node_b in zip(graph_a.graph.nodes, graph_b.graph.nodes):

docs/source/compiler-delegate-and-partitioner.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,13 @@ static auto success_with_compiler = register_backend(backend);
127127
```
128128

129129

130-
## SDK Integration: Debuggability
130+
## Developer Tools Integration: Debuggability
131131

132-
Providing consistent debugging experience, be it for runtime failures or performance profiling, is important. ExecuTorch employs native SDK (Software Development Kit) for this purpose, which enables correlating program instructions to original PyTorch code, via debug handles. You can read more about it [here](./sdk-etrecord).
132+
Providing consistent debugging experience, be it for runtime failures or performance profiling, is important. ExecuTorch employs native Developer Tools for this purpose, which enables correlating program instructions to original PyTorch code, via debug handles. You can read more about it [here](./sdk-etrecord).
133133

134-
Delegated program or subgraphs are opaque to ExecuTorch runtime and appear as a special `call_delegate` instruction, which asks corresponding backend to handle the execution of the subgraph or program. Due to the opaque nature of backend delgates, native SDK does not have visibility into delegated program. Thus the debugging, functional or performance, experiences of delegated execution suffers significantly as compared to it's non-delegated counterpart.
134+
Delegated program or subgraphs are opaque to ExecuTorch runtime and appear as a special `call_delegate` instruction, which asks corresponding backend to handle the execution of the subgraph or program. Due to the opaque nature of backend delgates, native Developer Tools does not have visibility into delegated program. Thus the debugging, functional or performance, experiences of delegated execution suffers significantly as compared to it's non-delegated counterpart.
135135

136-
In order to provide consistent debugging experience to users, regardless of the use of delegation for a model, SDK provides an interface to correlate delegated (sub)graph to original (sub)graph. The SDK does so via debug handles map which allows delegates to generate internal handles that can be associated with the original (sub)graph consumed by the delegate. Then at runtime, backend developer can report error or profiling information using the internal handle, which will be mapped to original (sub)graph using the debug handle map. For more information, please refer to [SDK delegate integration](./sdk-delegate-integration).
136+
In order to provide consistent debugging experience to users, regardless of the use of delegation for a model, Developer Tools provide an interface to correlate delegated (sub)graph to original (sub)graph. The Developer Tools do so via debug handles map which allows delegates to generate internal handles that can be associated with the original (sub)graph consumed by the delegate. Then at runtime, backend developer can report error or profiling information using the internal handle, which will be mapped to original (sub)graph using the debug handle map. For more information, please refer to [Developer Tools Delegate Integration](./sdk-delegate-integration).
137137

138138
By leveraging the debug identifier, backend developer can embed the debug as part of the delegated blob
139139

docs/source/concepts.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,9 @@ Techniques for performing computations and memory accesses on tensors with lower
283283

284284
The ExecuTorch runtime executes models on edge devices. It is responsible for program initialization, program execution and, optionally, destruction (releasing backend owned resources).
285285

286-
## [SDK](./sdk-overview.md)
286+
## [Developer Tools](./sdk-overview.md)
287287

288-
Software Development Kit. The tooling users need to profile, debug and visualize programs that are running with ExecuTorch.
288+
A collection of tools users need to profile, debug and visualize programs that are running with ExecuTorch.
289289

290290
## [Selective build](./kernel-library-selective-build.md)
291291

docs/source/getting-started-architecture.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ The ExecuTorch runtime is written in C++ with minimal dependencies for portabili
8787

8888
_Executor_ is the entry point to load the program and execute it. The execution triggers corresponding operator kernels or backend execution from this very minimal runtime.
8989

90-
## SDK
90+
## Developer Tools
9191

92-
It should be efficient for users to go from research to production using the flow above. Productivity is essentially important, for users to author, optimize and deploy their models. We provide [ExecuTorch SDK](./sdk-overview.md) to improve productivity. The SDK is not in the diagram. Instead it's a tool set that covers the developer workflow in all three phases.
92+
It should be efficient for users to go from research to production using the flow above. Productivity is essentially important, for users to author, optimize and deploy their models. We provide [ExecuTorch Developer Tools](./sdk-overview.md) to improve productivity. The Developer Tools are not in the diagram. Instead it's a tool set that covers the developer workflow in all three phases.
9393

94-
During the program preparation and execution, users can use the ExecuTorch SDK to profile, debug, or visualize the program. Since the end-to-end flow is within the PyTorch ecosystem, users can correlate and display performance data along with graph visualization as well as direct references to the program source code and model hierarchy. We consider this to be a critical component for quickly iterating and lowering PyTorch programs to edge devices and environments.
94+
During the program preparation and execution, users can use the ExecuTorch Developer Tools to profile, debug, or visualize the program. Since the end-to-end flow is within the PyTorch ecosystem, users can correlate and display performance data along with graph visualization as well as direct references to the program source code and model hierarchy. We consider this to be a critical component for quickly iterating and lowering PyTorch programs to edge devices and environments.

docs/source/index.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ Topics in this section will help you get started with ExecuTorch.
193193
.. toctree::
194194
:glob:
195195
:maxdepth: 1
196-
:caption: SDK
196+
:caption: Developer Tools
197197
:hidden:
198198

199199
sdk-overview
@@ -244,11 +244,11 @@ ExecuTorch tutorials.
244244
:tags:
245245

246246
.. customcarditem::
247-
:header: Using the ExecuTorch SDK to Profile a Model
248-
:card_description: A tutorial for using the ExecuTorch SDK to profile and analyze a model with linkage back to source code.
247+
:header: Using the ExecuTorch Developer Tools to Profile a Model
248+
:card_description: A tutorial for using the ExecuTorch Developer Tools to profile and analyze a model with linkage back to source code.
249249
:image: _static/img/generic-pytorch-logo.png
250250
:link: tutorials/sdk-integration-tutorial.html
251-
:tags: SDK
251+
:tags: devtools
252252

253253
.. customcarditem::
254254
:header: Integrating and Running ExecuTorch on Apple Platforms

docs/source/intro-overview.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ Key value propositions of ExecuTorch are:
1010
- **Portability:** Compatibility with a wide variety of computing platforms,
1111
from high-end mobile phones to highly constrained embedded systems and
1212
microcontrollers.
13-
- **Productivity:** Enabling developers to use the same toolchains and SDK from
14-
PyTorch model authoring and conversion, to debugging and deployment to a wide
15-
variety of platforms.
13+
- **Productivity:** Enabling developers to use the same toolchains and Developer
14+
Tools from PyTorch model authoring and conversion, to debugging and deployment
15+
to a wide variety of platforms.
1616
- **Performance:** Providing end users with a seamless and high-performance
1717
experience due to a lightweight runtime and utilizing full hardware
1818
capabilities such as CPUs, NPUs, and DSPs.

docs/source/llm/getting-started.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ In the fragment of the output for nanoGPT below, observe that embedding and add
746746

747747
### Performance Analysis
748748

749-
Through the ExecuTorch SDK, users are able to profile model execution, giving timing information for each operator in the model.
749+
Through the ExecuTorch Developer Tools, users are able to profile model execution, giving timing information for each operator in the model.
750750

751751
#### Prerequisites
752752

@@ -805,7 +805,7 @@ if (result.buf != nullptr && result.size > 0) {
805805
}
806806
```
807807

808-
Additionally, update CMakeLists.txt to build with SDK and enable events to be traced and logged into ETDump:
808+
Additionally, update CMakeLists.txt to build with Developer Tools and enable events to be traced and logged into ETDump:
809809

810810
```
811811
option(EXECUTORCH_BUILD_SDK "" ON)

docs/source/native-delegates-executorch-xnnpack-delegate.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Since weight packing creates an extra copy of the weights inside XNNPACK, We fre
7474
When executing the XNNPACK subgraphs, we prepare the tensor inputs and outputs and feed them to the XNNPACK runtime graph. After executing the runtime graph, the output pointers are filled with the computed tensors.
7575

7676
#### **Profiling**
77-
We have enabled basic profiling for XNNPACK delegate that can be enabled with the following compiler flag `-DENABLE_XNNPACK_PROFILING`. With ExecuTorch's SDK integration, you can also now use the SDK tools to profile the model. You can follow the steps in [Using the ExecuTorch SDK to Profile a Model](./tutorials/sdk-integration-tutorial) on how to profile ExecuTorch models and use SDK's Inspector API to view XNNPACK's internal profiling information.
77+
We have enabled basic profiling for XNNPACK delegate that can be enabled with the following compiler flag `-DENABLE_XNNPACK_PROFILING`. With ExecuTorch's Developer Tools integration, you can also now use the Developer Tools to profile the model. You can follow the steps in [Using the ExecuTorch Developer Tools to Profile a Model](./tutorials/sdk-integration-tutorial) on how to profile ExecuTorch models and use Developer Tools' Inspector API to view XNNPACK's internal profiling information.
7878

7979

8080
[comment]: <> (TODO: Refactor quantizer to a more official quantization doc)

docs/source/sdk-debugging.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Debugging Models in ExecuTorch
22

3-
With the ExecuTorch SDK, users can debug their models for numerical inaccurcies and extract model outputs from their device to do quality analysis (such as Signal-to-Noise, Mean square error etc.).
3+
With the ExecuTorch Developer Tools, users can debug their models for numerical inaccurcies and extract model outputs from their device to do quality analysis (such as Signal-to-Noise, Mean square error etc.).
44

55
Currently, ExecuTorch supports the following debugging flows:
66
- Extraction of model level outputs via ETDump.

docs/source/sdk-delegate-integration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SDK Delegate Integration
1+
# Developer Tools Delegate Integration
22

33
[Delegate backends](compiler-delegate-and-partitioner.md) are a prominent component of on-device models due to their flexibility in defining behavior. A side effect of this flexibility is that it operates as an opaque transformation. This obfuscates rich associations and mutations that are valuable in post-processing.
44
- For example, if two different operator fusions were to occur within a delegate, post processing wouldn’t be able to separate the two transformations.

docs/source/sdk-etdump.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Prerequisite | ETDump - ExecuTorch Dump
22

3-
ETDump (ExecuTorch Dump) is one of the core components of the ExecuTorch SDK experience. It is the mechanism through which all forms of profiling and debugging data is extracted from the runtime. Users can't parse ETDump directly; instead, they should pass it into the Inspector API, which deserializes the data, offering interfaces for flexible analysis and debugging.
3+
ETDump (ExecuTorch Dump) is one of the core components of the ExecuTorch Developer Tools. It is the mechanism through which all forms of profiling and debugging data is extracted from the runtime. Users can't parse ETDump directly; instead, they should pass it into the Inspector API, which deserializes the data, offering interfaces for flexible analysis and debugging.
44

55

66
## Generating an ETDump

docs/source/sdk-etrecord.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ users ahead of time (when they export their model to run on ExecuTorch).
99
To draw a rough equivalent to conventional software development,
1010
``ETRecord`` can be considered as the binary built with debug symbols
1111
that is used for debugging in GNU Debugger (gdb). It is expected that
12-
the user will supply this to the ExecuTorch SDK tooling in order for
12+
the user will supply this to the ExecuTorch Developer Tools in order for
1313
them to debug and visualize their model.
1414

1515
``ETRecord`` contains numerous components such as:

0 commit comments

Comments
 (0)