提交 17e63554 authored 作者: David Warde-Farley's avatar David Warde-Farley

Change all theanorc code blocks in docs to use the 'cfg' Pygments filter which…

Change all theanorc code blocks in docs to use the 'cfg' Pygments filter which is designed for this.
上级 58467481
...@@ -150,7 +150,7 @@ The ``${HOME}/.theanorc`` file is the simplest way to set a relatively ...@@ -150,7 +150,7 @@ The ``${HOME}/.theanorc`` file is the simplest way to set a relatively
permanent option like this one. Add a ``[blas]`` section with an ``ldflags`` permanent option like this one. Add a ``[blas]`` section with an ``ldflags``
entry like this: entry like this:
.. code-block:: text .. code-block:: cfg
# other stuff can go here # other stuff can go here
...@@ -269,7 +269,7 @@ Mac ...@@ -269,7 +269,7 @@ Mac
the case already (so that we link to the correct libraries). You may also the case already (so that we link to the correct libraries). You may also
need to add need to add
.. code-block:: bash .. code-block:: cfg
[gcc] [gcc]
cxxflags = -L/opt/local/lib cxxflags = -L/opt/local/lib
...@@ -285,7 +285,7 @@ Mac ...@@ -285,7 +285,7 @@ Mac
``THEANO_FLAGS=cmodule.mac_framework_link`` or edit your ``~/.theanorc`` to ``THEANO_FLAGS=cmodule.mac_framework_link`` or edit your ``~/.theanorc`` to
contain contain
.. code-block:: bash .. code-block:: cfg
[cmodule] [cmodule]
mac_framework_link=True mac_framework_link=True
...@@ -336,7 +336,7 @@ Windows V1 (bigger install, but simpler instructions + tentative GPU instruction ...@@ -336,7 +336,7 @@ Windows V1 (bigger install, but simpler instructions + tentative GPU instruction
to create under Windows) in your user profile directory, containing the following to create under Windows) in your user profile directory, containing the following
two lines: two lines:
.. code-block:: bash .. code-block:: cfg
[blas] [blas]
ldflags = ldflags =
...@@ -451,14 +451,14 @@ Windows V1.5 (optional follow-up to V1 instructions) ...@@ -451,14 +451,14 @@ Windows V1.5 (optional follow-up to V1 instructions)
nvcc(at least version 3.1) don't support them well. If your USERPROFILE nvcc(at least version 3.1) don't support them well. If your USERPROFILE
directory contain those caractere, you must add in your configuration file: directory contain those caractere, you must add in your configuration file:
.. code-block:: bash .. code-block:: cfg
[global] [global]
base_compiledir=PATH_TO_A_DIRECTORY_WITHOUT_THOSE_CARACTERE base_compiledir=PATH_TO_A_DIRECTORY_WITHOUT_THOSE_CARACTERE
You also need to add in the configuration file those line: You also need to add in the configuration file those line:
.. code-block:: bash .. code-block:: cfg
[cuda] [cuda]
nvccflags=-LC:\Python26\libs nvccflags=-LC:\Python26\libs
...@@ -573,7 +573,7 @@ but this has not been tested yet. ...@@ -573,7 +573,7 @@ but this has not been tested yet.
- Edit (or create) your ``$HOME/.theanorc`` and add the following section: - Edit (or create) your ``$HOME/.theanorc`` and add the following section:
.. code-block:: bash .. code-block:: cfg
[blas] [blas]
ldflags = -lblas ldflags = -lblas
......
...@@ -65,7 +65,7 @@ Environment Variables ...@@ -65,7 +65,7 @@ Environment Variables
Here is the .theanorc equivalent to the THEANO_FLAGS in the example above: Here is the .theanorc equivalent to the THEANO_FLAGS in the example above:
.. code-block:: text .. code-block:: cfg
[global] [global]
floatX = float32 floatX = float32
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论