提交 18be4e51 authored 作者: lamblin's avatar lamblin

Merge pull request #926 from delallea/minor2

Minor stuff
...@@ -415,12 +415,12 @@ Here is some code that allow to make the op Optional: ...@@ -415,12 +415,12 @@ Here is some code that allow to make the op Optional:
Random number in tests Random number in tests
---------------------- ----------------------
Making tests errors more reproducable is a good practice. To make your Making tests errors more reproducible is a good practice. To make your
tests more reproducable, you need a way to get the same random tests more reproducible, you need a way to get the same random
number. You can do this by seeding NumPy's randon number numbers. You can do this by seeding NumPy's random number
generator. generator.
For conveniance, the classes InferShapeTester and RopLop_checker For convenience, the classes InferShapeTester and RopLop_checker
already do this for you. If you implement your own ``setUp`` function, already do this for you. If you implement your own ``setUp`` function,
don't forget to call the parent ``setUp`` function. don't forget to call the parent ``setUp`` function.
......
...@@ -87,7 +87,7 @@ def run_mercurial_command(hg_command): ...@@ -87,7 +87,7 @@ def run_mercurial_command(hg_command):
hg_command_tuple = hg_command.split() hg_command_tuple = hg_command.split()
hg_command_tuple.insert(0, hg_executable) hg_command_tuple.insert(0, hg_executable)
#If you install your own mercurial version in your home #If you install your own mercurial version in your home
#hg_executable don't always have execution permission. #hg_executable does not always have execution permission.
if not os.access(hg_executable, os.X_OK): if not os.access(hg_executable, os.X_OK):
hg_command_tuple.insert(0, sys.executable) hg_command_tuple.insert(0, sys.executable)
try: try:
......
...@@ -5,8 +5,9 @@ from theano import config ...@@ -5,8 +5,9 @@ from theano import config
from theano.gof.compilelock import get_lock, release_lock from theano.gof.compilelock import get_lock, release_lock
from theano.gof import cmodule from theano.gof import cmodule
_logger = logging.getLogger('theano.scan_module.scan_perform') _logger = logging.getLogger('theano.scan_module.scan_perform')
logging.basicConfig(level=logging.DEBUG) _logger.setLevel(logging.WARN)
# Ensure the compiledir is in `sys.path` to be able to reload an existing # Ensure the compiledir is in `sys.path` to be able to reload an existing
......
...@@ -1399,7 +1399,7 @@ _good_broadcast_unary_gammaln = dict( ...@@ -1399,7 +1399,7 @@ _good_broadcast_unary_gammaln = dict(
normal=(rand_ranged(-1 + 1e-2, 10, (2, 3)),), normal=(rand_ranged(-1 + 1e-2, 10, (2, 3)),),
empty=(numpy.asarray([]),),) empty=(numpy.asarray([]),),)
_grad_broadcast_unary_gammaln = dict( _grad_broadcast_unary_gammaln = dict(
# smaller range as our grad method don't estimate it good enough. # smaller range as our grad method does not estimate it well enough.
normal=(rand_ranged(1e-8, 8, (2, 3)),),) normal=(rand_ranged(1e-8, 8, (2, 3)),),)
GammaTester = makeBroadcastTester( GammaTester = makeBroadcastTester(
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论