Skip to content

Commit

Permalink
Fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbenayoun committed Dec 18, 2024
1 parent 9063a90 commit 09965ae
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 2 deletions.
17 changes: 17 additions & 0 deletions docs/source/_toctree.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,23 @@
title: Reference
isExpanded: false
title: "ONNX"
- sections:
- local: exporters/executorch/overview
title: Overview
- sections:
- local: exporters/executorch/usage_guides/export_a_model
title: Export a model to ExecuTorch
- local: exporters/executorch/usage_guides/contribute
title: Add support for exporting an architecture to ExecuTorch
title: How-to guides
- sections:
- local: exporters/executorch/package_reference/configuration
title: ExecuTorch configurations
- local: exporters/executorch/package_reference/export
title: Export functions
title: Reference
isExpanded: false
title: "ExecuTorch"
- sections:
- local: exporters/tflite/overview
title: Overview
Expand Down
1 change: 1 addition & 0 deletions optimum/exporters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from . import onnx # noqa
from . import executorch # noqa
from .tasks import TasksManager # noqa
7 changes: 5 additions & 2 deletions optimum/exporters/executorch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@
"discover_tasks",
"register_task",
],
"xnnpack": [
"export_to_executorch_with_xnnpack",
"tasks": [
"causal_lm",
],
"recipes": [
"xnnpack",
],
"__main__": ["main_export"],
}
Expand Down
2 changes: 2 additions & 0 deletions optimum/exporters/executorch/recipes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
# an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.

from . import xnnpack
2 changes: 2 additions & 0 deletions optimum/exporters/executorch/tasks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
# an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.

from . import causal_lm

0 comments on commit 09965ae

Please sign in to comment.