提交 4c5a082e authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Tell to use nosetests if theano-nose is not present

上级 74230ed3
...@@ -81,6 +81,12 @@ able to execute it if you installed Theano using pip, or if you ran ...@@ -81,6 +81,12 @@ able to execute it if you installed Theano using pip, or if you ran
not found by your shell, you will need to add ``Theano/bin`` to your not found by your shell, you will need to add ``Theano/bin`` to your
``PATH`` environment variable. ``PATH`` environment variable.
.. note::
In Theano versions <= 0.5, ``theano-nose`` was not included. If you
are working with such a version, you can call ``nosetests`` instead
of ``theano-nose`` in all the examples below.
Running all unit tests :: Running all unit tests ::
cd Theano/theano cd Theano/theano
......
...@@ -328,6 +328,14 @@ You should be able to execute it if you followed the instructions above. ...@@ -328,6 +328,14 @@ You should be able to execute it if you followed the instructions above.
If ``theano-nose`` is not found by your shell, you will need to add If ``theano-nose`` is not found by your shell, you will need to add
``Theano/bin`` to your ``PATH`` environment variable. ``Theano/bin`` to your ``PATH`` environment variable.
.. note::
In Theano versions <= 0.5, ``theano-nose`` was not included. If you
are working with such a version, you can call ``nosetests`` instead
of ``theano-nose``. In that case, some tests will fail by raising
the KnownFailureTest Exception, and will be considered as errors,
but they are nothing to worry about.
.. note:: .. note::
The tests should be run with the configuration option :attr:`~config.device` The tests should be run with the configuration option :attr:`~config.device`
...@@ -1020,6 +1028,15 @@ This will run tests in batches of 100, which should avoid memory errors. ...@@ -1020,6 +1028,15 @@ This will run tests in batches of 100, which should avoid memory errors.
Note that this script calls ``nosetests``, which may require being run from Note that this script calls ``nosetests``, which may require being run from
within an MSYS shell if you installed Nose manually as described above. within an MSYS shell if you installed Nose manually as described above.
.. note::
In Theano versions <= 0.5, ``theano-nose`` was not included. If you
are working with such a version, you can call this command instead:
.. code-block:: bash
python theano/tests/run_tests_in_batch.py
Editing code in Visual Studio Editing code in Visual Studio
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论