提交 7eb8a302 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Typo fixes

上级 00183e72
......@@ -415,12 +415,12 @@ Here is some code that allow to make the op Optional:
Random number in tests
----------------------
Making tests errors more reproducable is a good practice. To make your
tests more reproducable, you need a way to get the same random
number. You can do this by seeding NumPy's randon number
Making tests errors more reproducible is a good practice. To make your
tests more reproducible, you need a way to get the same random
numbers. You can do this by seeding NumPy's random number
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,
don't forget to call the parent ``setUp`` function.
......
......@@ -87,7 +87,7 @@ def run_mercurial_command(hg_command):
hg_command_tuple = hg_command.split()
hg_command_tuple.insert(0, hg_executable)
#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):
hg_command_tuple.insert(0, sys.executable)
try:
......
......@@ -1399,7 +1399,7 @@ _good_broadcast_unary_gammaln = dict(
normal=(rand_ranged(-1 + 1e-2, 10, (2, 3)),),
empty=(numpy.asarray([]),),)
_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)),),)
GammaTester = makeBroadcastTester(
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论