Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
9fb9f619
提交
9fb9f619
authored
6月 15, 2015
作者:
Arnaud Bergeron
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix last few problem with the giant python2/3 PR.
上级
94dc4a91
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
1 行增加
和
6 行删除
+1
-6
test_fg.py
theano/gof/tests/test_fg.py
+1
-1
test_type.py
theano/sandbox/cuda/tests/test_type.py
+0
-4
test_flake8.py
theano/tests/test_flake8.py
+0
-1
没有找到文件。
theano/gof/tests/test_fg.py
浏览文件 @
9fb9f619
...
@@ -6,7 +6,7 @@ import unittest
...
@@ -6,7 +6,7 @@ import unittest
from
nose.plugins.skip
import
SkipTest
from
nose.plugins.skip
import
SkipTest
import
theano
import
theano
from
theano.compat
.six
import
PY3
from
theano.compat
import
PY3
from
theano.gof
import
CachedConstantError
,
FunctionGraph
from
theano.gof
import
CachedConstantError
,
FunctionGraph
from
theano
import
tensor
as
tt
from
theano
import
tensor
as
tt
...
...
theano/sandbox/cuda/tests/test_type.py
浏览文件 @
9fb9f619
...
@@ -57,15 +57,11 @@ def test_unpickle_cudandarray_as_numpy_ndarray_flag1():
...
@@ -57,15 +57,11 @@ def test_unpickle_cudandarray_as_numpy_ndarray_flag1():
fname
=
'CudaNdarray.pkl'
fname
=
'CudaNdarray.pkl'
with
open
(
os
.
path
.
join
(
testfile_dir
,
fname
),
'rb'
)
as
fp
:
with
open
(
os
.
path
.
join
(
testfile_dir
,
fname
),
'rb'
)
as
fp
:
<<<<<<<
HEAD
if
PY3
:
if
PY3
:
u
=
CompatUnpickler
(
fp
,
encoding
=
"latin1"
)
u
=
CompatUnpickler
(
fp
,
encoding
=
"latin1"
)
else
:
else
:
u
=
CompatUnpickler
(
fp
)
u
=
CompatUnpickler
(
fp
)
mat
=
u
.
load
()
mat
=
u
.
load
()
=======
mat
=
pickle
.
load
(
fp
)
>>>>>>>
Import
rewrites
and
renames
to
3.
x
names
.
assert
isinstance
(
mat
,
numpy
.
ndarray
)
assert
isinstance
(
mat
,
numpy
.
ndarray
)
assert
mat
[
0
]
==
-
42.0
assert
mat
[
0
]
==
-
42.0
...
...
theano/tests/test_flake8.py
浏览文件 @
9fb9f619
...
@@ -19,7 +19,6 @@ __copyright__ = "(c) 2015, Universite de Montreal"
...
@@ -19,7 +19,6 @@ __copyright__ = "(c) 2015, Universite de Montreal"
__contact__
=
"Saizheng Zhang <saizhenglisa..at..gmail.com>"
__contact__
=
"Saizheng Zhang <saizhenglisa..at..gmail.com>"
whitelist_flake8
=
[
whitelist_flake8
=
[
"compat/six.py"
,
# external package bundled for convenience.
"__init__.py"
,
"__init__.py"
,
"tests/test_gradient.py"
,
"tests/test_gradient.py"
,
"tests/test_config.py"
,
"tests/test_config.py"
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论