Skip to content

Commit

Permalink
Fix doc typos for onnx export (facebookresearch#891)
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj committed Feb 9, 2023
1 parent 35e5a24 commit e916027
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,6 @@
.. _ncnn: https://github.com/tencent/ncnn
.. _LibriSpeech: https://www.openslr.org/12
.. _musan: http://www.openslr.org/17/
.. _ONNX: https://github.com/onnx/onnx
.. _onnxruntime: https://github.com/microsoft/onnxruntime
"""
11 changes: 6 additions & 5 deletions docs/source/model-export/export-onnx.rst
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
Export to ONNX
==============

In this section, we describe how to export the following models to ONNX.
In this section, we describe how to export models to `ONNX`_.

In each recipe, there is a file called ``export-onnx.py``, which is used
to export trained models to ONNX.
to export trained models to `ONNX`_.

There is also a file named ``onnx_pretrained.py``, which you can use
the exported ONNX model in Python to decode sound files.
the exported `ONNX`_ model in Python with `onnxruntime`_ to decode sound files.

Example
=======

In the following, we demonstrate how to export a streaming Zipformer pre-trained
model from `<python3 ./python-api-examples/speech-recognition-from-microphone.py>`_
to ONNX.
model from
`<https://huggingface.co/csukuangfj/icefall-asr-librispeech-pruned-transducer-stateless7-2022-11-11>`_
to `ONNX`_.

Download the pre-trained model
------------------------------
Expand Down

0 comments on commit e916027

Please sign in to comment.