From 334f6b1e476c84ceb06ab155be7a70a5dc7077d8 Mon Sep 17 00:00:00 2001
From: NanoNabla <43477372+NanoNabla@users.noreply.github.com>
Date: Thu, 21 Jan 2021 20:59:27 +0100
Subject: [PATCH] improve ctcdecode docu for unsupported platforms
---
doc/BUILDING.rst | 63 ++++++++++++++++++++++++------------------------
1 file changed, 32 insertions(+), 31 deletions(-)
diff --git a/doc/BUILDING.rst b/doc/BUILDING.rst
index 5fa9a6cb..2ab99688 100644
--- a/doc/BUILDING.rst
+++ b/doc/BUILDING.rst
@@ -149,6 +149,37 @@ To build the ``ds_ctcdecoder`` package, you'll need the general requirements lis
make bindings NUM_PROCESSES=8
pip install dist/*.whl
+
+Building CTC Decoder for training on unsupported platforms
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+We only support building CTC Decoder on x86 and arm architectures.
+However, we offer some hints on building the CTC decoder on other
+architectures, and you might find some help in our `discourse `.
+
+Feedback on improving this section or usage on other architectures is welcome.
+
+First, you need to build SWIG from scratch.
+Since `SWIG >= 3.0.12 `_ does not include our patches please use
+https://github.com/lissyx/swig/tree/taskcluster for building SWIG from source.
+
+You can supply your prebuild SWIG using ``SWIG_DIST_URL``
+
+Moreover you may have to change ``PYTHON_PLATFORM_NAME`` corresponding to your platform.
+
+.. code-block::
+
+ # PowerPC (ppc64le)
+ PYTHON_PLATFORM_NAME="--plat-name linux_ppc64le"
+
+
+Complete build command:
+
+.. code-block::
+
+ SWIG_DIST_URL=[...] PYTHON_PLATFORM_NAME=[...] make bindings
+ pip install dist/*.whl
+
Cross-building
--------------
@@ -326,34 +357,4 @@ Feedback on improving this is welcome: how it could be exposed in the API, how
much performance gains do you get in your applications, how you had to change
the model to make it work with a delegate, etc.
-See :ref:`the support / contact details `
-
-
-Building CTC Decoder for training on unsupported platforms
-----------------------------------------------------------
-Alongside linux on x86 and arm, macOS and windows there also exists a lot of
-other architectures which are not offically supported by the DeepSpeech team.
-
-Nevertheless, we offer some hits for other architectures provided by users.
-If you have problems, ask in our `discourse `.
-
-Feedback on improving this section or usage on other architectures is welcome.
-
-Since, * `SWIG >= 3.0.12 `_ does not include our patches please use
-https://github.com/lissyx/swig/tree/taskcluster for building SWIG from source.
-
-You can supply your prebuild SWIG using ``SWIG_DIST_URL``
-
-Moreover you may have to change ``PYTHON_PLATFORM_NAME`` corresponding to your platform.
-
-.. code-block::
-
- # PowerPC (ppc64le)
- PYTHON_PLATFORM_NAME="--plat-name linux_ppc64le"
-
-
-Complete build command:
-
-.. code-block::
-
- SWIG_DIST_URL=[...] PYTHON_PLATFORM_NAME=[...] make bindings
\ No newline at end of file
+See :ref:`the support / contact details `
\ No newline at end of file