提交 149326f5 authored 作者: Pascal Lamblin's avatar Pascal Lamblin 提交者: Frederic

Rephrasing and typo fixes

上级 aed3540c
...@@ -106,7 +106,7 @@ def main(): ...@@ -106,7 +106,7 @@ def main():
'Use --without-knownfailure to disable this warning.') 'Use --without-knownfailure to disable this warning.')
else: else:
sys.argv.remove('--without-knownfailure') sys.argv.remove('--without-knownfailure')
# When 'theano-nose' is called-back under the time-profile option, an # When 'theano-nose' is called-back under the time-profile option, an
# instance of the custom Nosetests plugin class 'DisabDocString' (see # instance of the custom Nosetests plugin class 'DisabDocString' (see
# below) is loaded. The latter ensures that the test name will not be # below) is loaded. The latter ensures that the test name will not be
...@@ -122,7 +122,7 @@ def main(): ...@@ -122,7 +122,7 @@ def main():
return ret return ret
except TypeError, e: except TypeError, e:
if "got an unexpected keyword argument 'addplugins'" in e.message: if "got an unexpected keyword argument 'addplugins'" in e.message:
# This mean nose is too old and don't support plugins # This means nose is too old and does not support plugins
_logger.warn( _logger.warn(
'KnownFailure plugin from NumPy can\'t' 'KnownFailure plugin from NumPy can\'t'
' be used as nosetests is too old. ' ' be used as nosetests is too old. '
......
...@@ -807,16 +807,19 @@ Another software from Enthought that install all Theano dependancy. ...@@ -807,16 +807,19 @@ Another software from Enthought that install all Theano dependancy.
If you are affiliated with a university (as student or employee), you If you are affiliated with a university (as student or employee), you
can download the installation for free. can download the installation for free.
- Install Canopy x64 (and update it as older Canopy version had problem when installing pip). - Install Canopy x64, and update it to the latest version (`Help /
- Then install pip from Canopy Package Manager. Software updates...`), as older Canopy versions have trouble installing
- "pip install theano" in the Windows shell: "In the Windows start menu execute the `cmd` command". `pip`.
- in Canopy Package Manager, search and install packages "mingw 4.5.2" and "libpython 1.2" - Then install `pip` from Canopy Package Manager.
- (Needed only for Theano 0.6rc3 or older) The "libpython 1.2" package installs files "libpython27.a" and "libmsvcr90.a" to "C:\Users\<USER>\AppData\Local\Enthought\Canopy\User\libs" (on my computer) - In the Windows shell (type `cmd` in the Windows start menu to bring it up),
copy the two files to "C:\Users\<USER>\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.0.0.1160.win-x86_64\libs" type `pip install theano`.
- In Canopy Package Manager, search and install packages "mingw 4.5.2" and "libpython 1.2"
When doing "import theano" g++ links to directory "C:\Users\<USER>\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.0.0.1160.win-x86_64\libs" - (Needed only for Theano 0.6rc3 or earlier)
and "C:\Users\<USER>\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.0.0.1160.win-x86_64". Not where "libpython27.a" is installed. The "libpython 1.2" package installs files `libpython27.a` and `libmsvcr90.a` to
- (Needed only for Theano 0.6rc3 or older) Set the Theano flags ``blas.ldflags=C:\Users\<USER>\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.0.0.1160.win-x86_64\Scripts -lmk2_core -lmk2_intel_thread -lmk2_rt``. `C:\Users\<USER>\AppData\Local\Enthought\Canopy\User\libs`. Copy the two files to
`C:\Users\<USER>\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.0.0.1160.win-x86_64\libs`.
- (Needed only for Theano 0.6rc3 or earlier) Set the Theano flags
``blas.ldflags=-LC:\Users\<USER>\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.0.0.1160.win-x86_64\Scripts -lmk2_core -lmk2_intel_thread -lmk2_rt``.
......
...@@ -62,13 +62,13 @@ Test the newly installed packages ...@@ -62,13 +62,13 @@ Test the newly installed packages
2) SciPy (~1m): ``python -c "import scipy; scipy.test()"`` 2) SciPy (~1m): ``python -c "import scipy; scipy.test()"``
3) Theano (~30m): ``python -c "import theano; theano.test()"`` 3) Theano (~30m): ``python -c "import theano; theano.test()"``
NumPy 1.6.2, 1.7.0 and 1.7.1, have a bug where it mark an ndarray as NumPy 1.6.2, 1.7.0 and 1.7.1, have a bug where it marks some ndarrays
not aligned. Theano do not support unaligned array and verify as not aligned. Theano does not support unaligned arrays, and raises
that. This cause one test to fail with an unaligned error with those an Exception when that happens. This can cause one test to fail with
version of NumPy. You can ignore that test error as at worst, your an unaligned error with those versions of NumPy. You can ignore that
code will crash. If this happen, install another NumPy version to fix test error as at worst, your code will crash. If this happens, you can
this problem. NumPy 1.6.2 is used in Ubuntu 12.10 and NumPy 1.7.1 is install another NumPy version to fix this problem. NumPy 1.6.2 is used
used in Ubuntu 13.04. in Ubuntu 12.10 and NumPy 1.7.1 is used in Ubuntu 13.04.
Speed test Theano/BLAS Speed test Theano/BLAS
~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
......
...@@ -8,7 +8,7 @@ def kron(a, b): ...@@ -8,7 +8,7 @@ def kron(a, b):
:param a: array_like :param a: array_like
:param b: array_like :param b: array_like
:return: array_like with a.ndim + b.ndim - 2 dimensinos. :return: array_like with a.ndim + b.ndim - 2 dimensions.
""" """
a = tensor.as_tensor_variable(a) a = tensor.as_tensor_variable(a)
......
...@@ -201,18 +201,18 @@ def default_blas_ldflags(): ...@@ -201,18 +201,18 @@ def default_blas_ldflags():
if "Canopy" in sys.prefix: if "Canopy" in sys.prefix:
p = os.path.join(sys.prefix, "..", "..", "..", p = os.path.join(sys.prefix, "..", "..", "..",
"Canopy", "appdata") "Canopy", "appdata")
assert os.path.exists(p), "Canopy changed where is MKL" assert os.path.exists(p), "Canopy changed the location of MKL"
p2 = os.listdir(p) p2 = os.listdir(p)
assert len(p2) == 1, "Canopy changed where is install MKL" assert len(p2) == 1, "Canopy changed the location of MKL"
if sys.platform == "linux2": if sys.platform == "linux2":
p2 = os.path.join(p, p2[0], "lib") p2 = os.path.join(p, p2[0], "lib")
assert os.path.exists(p2), "Canopy changed where is MKL" assert os.path.exists(p2), "Canopy changed the location of MKL"
return ' '.join( return ' '.join(
['-L%s' % p2] + ['-L%s' % p2] +
['-l%s' % l for l in blas_info['libraries']]) ['-l%s' % l for l in blas_info['libraries']])
elif sys.platform == 'win32': elif sys.platform == 'win32':
p2 = os.path.join(p, p2[0], "Scripts") p2 = os.path.join(p, p2[0], "Scripts")
assert os.path.exists(p2), "Canopy changed where is MKL" assert os.path.exists(p2), "Canopy changed the location of MKL"
return ' '.join( return ' '.join(
['-L%s' % p2] + ['-L%s' % p2] +
# Why on Windows, the library used are not the # Why on Windows, the library used are not the
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论