提交 e0520e4e authored 作者: Razvan Pascanu's avatar Razvan Pascanu

Merge pull request #170 from delallea/typos

Typos
...@@ -88,7 +88,7 @@ Deprecation (will be removed in Theano 0.5, warning generated if you use them): ...@@ -88,7 +88,7 @@ Deprecation (will be removed in Theano 0.5, warning generated if you use them):
* scan interface change: * scan interface change:
* The use of `return_steps` for specifying how many entries of the output * The use of `return_steps` for specifying how many entries of the output
scan has been depricated scan has been deprecated
* The same thing can be done by applying a subtensor on the output * The same thing can be done by applying a subtensor on the output
return by scan to select a certain slice return by scan to select a certain slice
......
...@@ -88,7 +88,7 @@ Deprecation (will be removed in Theano 0.5, warning generated if you use them): ...@@ -88,7 +88,7 @@ Deprecation (will be removed in Theano 0.5, warning generated if you use them):
* scan interface change: * scan interface change:
* The use of `return_steps` for specifying how many entries of the output * The use of `return_steps` for specifying how many entries of the output
scan has been depricated scan has been deprecated
* The same thing can be done by applying a subtensor on the output * The same thing can be done by applying a subtensor on the output
return by scan to select a certain slice return by scan to select a certain slice
......
...@@ -998,7 +998,7 @@ class ModuleCache(object): ...@@ -998,7 +998,7 @@ class ModuleCache(object):
age_thresh_del = self.age_thresh_del age_thresh_del = self.age_thresh_del
# Ensure that the too_old_to_use list return by refresh() will # Ensure that the too_old_to_use list return by refresh() will
# contain all modules older thatn age_thresh_del. # contain all modules older than age_thresh_del.
if age_thresh_del < self.age_thresh_use: if age_thresh_del < self.age_thresh_use:
if age_thresh_del > 0: if age_thresh_del > 0:
_logger.warning("Clearing modules that were not deemed " _logger.warning("Clearing modules that were not deemed "
......
...@@ -1125,7 +1125,7 @@ class EquilibriumOptimizer(NavigatorOptimizer): ...@@ -1125,7 +1125,7 @@ class EquilibriumOptimizer(NavigatorOptimizer):
if max_use_abort: if max_use_abort:
_logger.error("EquilibriumOptimizer max'ed out by '%s'" % opt_name _logger.error("EquilibriumOptimizer max'ed out by '%s'" % opt_name
+ ". You can safely raise the current threshold of " + ". You can safely raise the current threshold of "
+ "%f with the theano flasg 'optdb.max_use_ratio'." % + "%f with the theano flag 'optdb.max_use_ratio'." %
config.optdb.max_use_ratio) config.optdb.max_use_ratio)
def print_summary(self, stream=sys.stdout, level=0, depth=-1): def print_summary(self, stream=sys.stdout, level=0, depth=-1):
......
...@@ -389,13 +389,13 @@ def scan(fn, ...@@ -389,13 +389,13 @@ def scan(fn,
for i in xrange(n_outs): for i in xrange(n_outs):
if outs_info[i] is not None: if outs_info[i] is not None:
if isinstance(outs_info[i], dict): if isinstance(outs_info[i], dict):
# DEPRICATED : # DEPRECATED :
if outs_info[i].get('return_steps', None): if outs_info[i].get('return_steps', None):
_logger.warning(("Using `return_steps` has been " _logger.warning(
"depricated. Simply select the entries you " "Using `return_steps` has been deprecated. "
"need using a subtensor. Scan will optimize " "Simply select the entries you need using a "
"memory consumption, so do not worry about " "subtensor. Scan will optimize memory "
"that.")) "consumption, so do not worry about that.")
return_steps[i] = outs_info[i]['return_steps'] return_steps[i] = outs_info[i]['return_steps']
# END # END
......
...@@ -131,8 +131,7 @@ def clone( output ...@@ -131,8 +131,7 @@ def clone( output
graph. It returns a copy of the initial subgraph with the corresponding graph. It returns a copy of the initial subgraph with the corresponding
substitutions. substitutions.
:type output: Theano Variables (or Theano expressions)
:type output: Theano Variables ( or Theano expressions)
:param outputs: Theano expression that represents the computational :param outputs: Theano expression that represents the computational
graph graph
......
...@@ -724,8 +724,8 @@ class T_Scan(unittest.TestCase): ...@@ -724,8 +724,8 @@ class T_Scan(unittest.TestCase):
# assert that it was done in place # assert that it was done in place
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# Old way of doing inplace operations is depricated .. tests don't # Old way of doing inplace operations is deprecated .. tests don't
# make sense anymroe # make sense anymore.
##assert numpy.allclose( theano_x0 , vu2) ##assert numpy.allclose( theano_x0 , vu2)
## assert numpy.allclose( theano_x1 , vu1) ## assert numpy.allclose( theano_x1 , vu1)
...@@ -794,8 +794,8 @@ class T_Scan(unittest.TestCase): ...@@ -794,8 +794,8 @@ class T_Scan(unittest.TestCase):
# inplace !! # inplace !!
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# Old way of doing inplace operations is depricated .. tests don't # Old way of doing inplace operations is deprecated .. tests don't
# make sense anymroe # make sense anymore.
#assert not numpy.allclose( theano_x0 , vu2[1:4]) #assert not numpy.allclose( theano_x0 , vu2[1:4])
#assert numpy.allclose( theano_x1 , vu1[0:3]) #assert numpy.allclose( theano_x1 , vu1[0:3])
...@@ -1552,7 +1552,7 @@ class T_Scan(unittest.TestCase): ...@@ -1552,7 +1552,7 @@ class T_Scan(unittest.TestCase):
This unit test addresses the bug fix of changeset ba7157e95cb1. This unit test addresses the bug fix of changeset ba7157e95cb1.
!!! test lost some of its meaning because return_steps has been !!! test lost some of its meaning because return_steps has been
depricated !!! deprecated !!!
""" """
a = theano.tensor.vector() a = theano.tensor.vector()
init_a = theano.tensor.vector() init_a = theano.tensor.vector()
......
...@@ -274,7 +274,8 @@ class test_canonize(unittest.TestCase): ...@@ -274,7 +274,8 @@ class test_canonize(unittest.TestCase):
This part are that case that should have been done, but that are not implemented. This part are that case that should have been done, but that are not implemented.
Test with and without DimShuffle Test with and without DimShuffle
""" """
raise SkipTest("Current implementation of Canonizer don't implement all case. Skip the corresponding test") raise SkipTest("Current implementation of Canonizer does not "
"implement all cases. Skip the corresponding test.")
shp=(5,5) shp=(5,5)
fx, fy, fz = fmatrices('xyz') fx, fy, fz = fmatrices('xyz')
...@@ -605,7 +606,8 @@ class test_canonize(unittest.TestCase): ...@@ -605,7 +606,8 @@ class test_canonize(unittest.TestCase):
def test_multiple_case_that_fail(self): def test_multiple_case_that_fail(self):
raise SkipTest("Current implementation of Canonizer don't implement all case. Skip the corresponding test") raise SkipTest("Current implementation of Canonizer does not "
"implement all cases. Skip the corresponding test.")
shp=(4,4) shp=(4,4)
fx, fy, fz = fmatrices('xyz') fx, fy, fz = fmatrices('xyz')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论