Skip to content

Commit 3054439

Browse files
committed
Address comments
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags:
1 parent 2831aab commit 3054439

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/source/runtime-python-api-reference.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
ExecuTorch Runtime Python API Reference
22
----------------------------------
33
The Python ``executorch.runtime`` module wraps the C++ ExecuTorch runtime. It can load and execute serialized ``.pte`` program files: see the `Export to ExecuTorch Tutorial <tutorials/export-to-executorch-tutorial.html>`__ for how to convert a PyTorch ``nn.Module`` to an ExecuTorch ``.pte`` program file. Execution accepts and returns ``torch.Tensor`` values, making it a quick way to validate the correctness of the program.
4+
45
For detailed information on how APIs evolve and the deprecation process, please refer to the `ExecuTorch API Life Cycle and Deprecation Policy <api-life-cycle.html>`__.
56

67
.. automodule:: executorch.runtime

runtime/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,15 @@
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-
"""Interface to the native C++ ExecuTorch runtime.
8-
7+
"""
98
Example usage:
109
1110
.. code-block:: python
1211
1312
from pathlib import Path
1413
1514
import torch
16-
from executorch.runtime import Verification, Runtime
15+
from executorch.runtime import Verification, Runtime, Program, Method
1716
1817
et_runtime: Runtime = Runtime.get()
1918
program: Program = et_runtime.load_program(

0 commit comments

Comments
 (0)