Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
e055421e
提交
e055421e
authored
6月 29, 2011
作者:
Pascal Lamblin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove unittest.rseed from config md5. Revert temporary fix in 75d8a63c6a36.
上级
948c6813
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
5 行增加
和
11 行删除
+5
-11
debugmode.py
theano/compile/debugmode.py
+2
-1
basic.py
theano/scalar/basic.py
+1
-9
unittest_tools.py
theano/tests/unittest_tools.py
+2
-1
没有找到文件。
theano/compile/debugmode.py
浏览文件 @
e055421e
...
@@ -69,7 +69,8 @@ AddConfigVar('DebugMode.check_preallocated_output',
...
@@ -69,7 +69,8 @@ AddConfigVar('DebugMode.check_preallocated_output',
'"c_contiguous", "f_contiguous", '
'"c_contiguous", "f_contiguous", '
'"neg_strides" (negative strides), and '
'"neg_strides" (negative strides), and '
'"ALL" (all of the above).'
),
'"ALL" (all of the above).'
),
StrParam
(
'ALL'
,
is_valid
=
is_valid_check_preallocated_output_param
))
StrParam
(
'ALL'
,
is_valid
=
is_valid_check_preallocated_output_param
),
in_c_key
=
False
)
import
logging
import
logging
_logger
=
logging
.
getLogger
(
"theano.compile.debugmode"
)
_logger
=
logging
.
getLogger
(
"theano.compile.debugmode"
)
...
...
theano/scalar/basic.py
浏览文件 @
e055421e
...
@@ -2062,15 +2062,7 @@ class Composite(ScalarOp):
...
@@ -2062,15 +2062,7 @@ class Composite(ScalarOp):
#TODO: What no_recycling is used for? What I need to put their?
#TODO: What no_recycling is used for? What I need to put their?
# no_recycling = []
# no_recycling = []
self
.
_cmodule_key
=
gof
.
CLinker
.
cmodule_key_
(
self
.
env
,
[])
self
.
_cmodule_key
=
gof
.
CLinker
.
cmodule_key_
(
self
.
env
,
[])
# Remove the config md5 from _hashval
self
.
_hashval
=
hash
(
self
.
_cmodule_key
)
# This is a temporary fix so that _hashval does not change when
# the Op is pickled and unpickled.
cmkey
=
list
(
self
.
_cmodule_key
)
cmkey1
=
list
(
cmkey
[
1
])
assert
isinstance
(
cmkey1
[
3
],
str
)
and
cmkey1
[
3
]
.
startswith
(
'md5:'
)
del
cmkey1
[
3
]
cmkey
[
1
]
=
tuple
(
cmkey1
)
self
.
_hashval
=
hash
(
tuple
(
cmkey
))
def
__hash__
(
self
):
def
__hash__
(
self
):
return
self
.
_hashval
return
self
.
_hashval
...
...
theano/tests/unittest_tools.py
浏览文件 @
e055421e
...
@@ -7,7 +7,8 @@ from theano.configparser import config, AddConfigVar, StrParam
...
@@ -7,7 +7,8 @@ from theano.configparser import config, AddConfigVar, StrParam
AddConfigVar
(
'unittests.rseed'
,
AddConfigVar
(
'unittests.rseed'
,
"Seed to use for randomized unit tests. Special value 'random' means using a seed of None."
,
"Seed to use for randomized unit tests. Special value 'random' means using a seed of None."
,
StrParam
(
666
))
StrParam
(
666
),
in_c_key
=
False
)
def
fetch_seed
(
pseed
=
None
):
def
fetch_seed
(
pseed
=
None
):
"""
"""
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论