提交 5cd26de6 authored 作者: lamblin's avatar lamblin

Merge pull request #636 from nouiz/fix_test

Fix test
...@@ -51,7 +51,10 @@ Clone your fork locally with ...@@ -51,7 +51,10 @@ Clone your fork locally with
.. code-block:: bash .. code-block:: bash
git clone git@github.com:your_github_login/Theano.git git clone git@github.com:YOUR_GITHUB_LOGIN/Theano.git
For this URL to work, you must set your public ssh keys inside your
`github account setting <https://github.com/settings/ssh>`_.
From your local repository, your own fork on GitHub will be called "origin". From your local repository, your own fork on GitHub will be called "origin".
......
...@@ -249,7 +249,7 @@ class T_sigmoid_opts(unittest.TestCase): ...@@ -249,7 +249,7 @@ class T_sigmoid_opts(unittest.TestCase):
# and DebugMode will complain. Everything is fine afterwards. # and DebugMode will complain. Everything is fine afterwards.
mode = self.get_mode() mode = self.get_mode()
if not isinstance(mode, theano.compile.DebugMode): if not isinstance(mode, theano.compile.DebugMode):
f = theano.function([x, lr], ux) f = theano.function([x, lr], ux, mode=mode)
ux_v = f([[50]], 0.1) ux_v = f([[50]], 0.1)
assert not numpy.isnan(ux_v) assert not numpy.isnan(ux_v)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论