Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
d7c32a00
提交
d7c32a00
authored
11月 01, 2020
作者:
George Ho
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove all theano.compat references
上级
26d33f00
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
5 行增加
和
6 行删除
+5
-6
test_function_module.py
tests/compile/test_function_module.py
+1
-1
configparser.py
theano/configparser.py
+3
-4
scan_perform_ext.py
theano/scan_module/scan_perform_ext.py
+1
-1
没有找到文件。
tests/compile/test_function_module.py
浏览文件 @
d7c32a00
...
@@ -1049,7 +1049,7 @@ class TestPicklefunction:
...
@@ -1049,7 +1049,7 @@ class TestPicklefunction:
f
=
theano
.
function
([
x
],
tt
.
dot
(
x
,
y
))
f
=
theano
.
function
([
x
],
tt
.
dot
(
x
,
y
))
from
theano.compat
import
BytesIO
from
io
import
BytesIO
fp
=
BytesIO
()
fp
=
BytesIO
()
p
=
pickle
.
Pickler
(
fp
,
2
)
p
=
pickle
.
Pickler
(
fp
,
2
)
...
...
theano/configparser.py
浏览文件 @
d7c32a00
...
@@ -9,11 +9,10 @@ import shlex
...
@@ -9,11 +9,10 @@ import shlex
import
sys
import
sys
import
warnings
import
warnings
from
functools
import
wraps
from
functools
import
wraps
from
io
import
StringIO
from
six
import
PY3
,
StringIO
import
theano
import
theano
from
theano.compat
import
configparser
as
ConfigParser
import
configparser
as
ConfigParser
_logger
=
logging
.
getLogger
(
"theano.configparser"
)
_logger
=
logging
.
getLogger
(
"theano.configparser"
)
...
@@ -77,7 +76,7 @@ def config_files_from_theanorc():
...
@@ -77,7 +76,7 @@ def config_files_from_theanorc():
config_files
=
config_files_from_theanorc
()
config_files
=
config_files_from_theanorc
()
theano_cfg
=
(
ConfigParser
.
ConfigParser
if
PY3
else
ConfigParser
.
SafeConfigParser
)
(
theano_cfg
=
ConfigParser
.
ConfigParser
(
{
{
"USER"
:
os
.
getenv
(
"USER"
,
os
.
path
.
split
(
os
.
path
.
expanduser
(
"~"
))[
-
1
]),
"USER"
:
os
.
getenv
(
"USER"
,
os
.
path
.
split
(
os
.
path
.
expanduser
(
"~"
))[
-
1
]),
"LSCRATCH"
:
os
.
getenv
(
"LSCRATCH"
,
""
),
"LSCRATCH"
:
os
.
getenv
(
"LSCRATCH"
,
""
),
...
...
theano/scan_module/scan_perform_ext.py
浏览文件 @
d7c32a00
...
@@ -16,7 +16,7 @@ import numpy as np
...
@@ -16,7 +16,7 @@ import numpy as np
import
theano
import
theano
from
theano
import
config
from
theano
import
config
from
theano.compat
import
reload
from
importlib
import
reload
from
theano.gof
import
cmodule
from
theano.gof
import
cmodule
from
theano.gof.compilelock
import
get_lock
,
release_lock
from
theano.gof.compilelock
import
get_lock
,
release_lock
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论