Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
7eb8a302
提交
7eb8a302
authored
9月 03, 2012
作者:
Olivier Delalleau
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Typo fixes
上级
00183e72
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
6 行增加
和
6 行删除
+6
-6
extending_theano.txt
doc/tutorial/extending_theano.txt
+4
-4
check_whitespace.py
theano/misc/hooks/check_whitespace.py
+1
-1
test_basic.py
theano/tensor/tests/test_basic.py
+1
-1
没有找到文件。
doc/tutorial/extending_theano.txt
浏览文件 @
7eb8a302
...
@@ -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 reproduc
a
ble is a good practice. To make your
Making tests errors more reproduc
i
ble is a good practice. To make your
tests more reproduc
a
ble, you need a way to get the same random
tests more reproduc
i
ble, you need a way to get the same random
number
. You can do this by seeding NumPy's randon
number
number
s. You can do this by seeding NumPy's random
number
generator.
generator.
For conveni
a
nce, the classes InferShapeTester and RopLop_checker
For conveni
e
nce, 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.
...
...
theano/misc/hooks/check_whitespace.py
浏览文件 @
7eb8a302
...
@@ -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 do
n'
t always have execution permission.
#hg_executable do
es no
t 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
:
...
...
theano/tensor/tests/test_basic.py
浏览文件 @
7eb8a302
...
@@ -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 do
n't estimate it good
enough.
# smaller range as our grad method do
es 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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论