Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
fc75dbf9
提交
fc75dbf9
authored
5月 10, 2012
作者:
lamblin
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #642 from nouiz/scipy
Fix tests error when scipy is not there
上级
421b712f
45a97cb2
全部展开
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
13 行增加
和
9 行删除
+13
-9
test_neighbours.py
theano/sandbox/test_neighbours.py
+2
-2
test_rng_mrg.py
theano/sandbox/test_rng_mrg.py
+0
-0
test_opt.py
theano/sparse/tests/test_opt.py
+4
-4
test_sp2.py
theano/sparse/tests/test_sp2.py
+3
-3
test_utils.py
theano/sparse/tests/test_utils.py
+4
-0
没有找到文件。
theano/sandbox/test_neighbours.py
浏览文件 @
fc75dbf9
...
...
@@ -102,7 +102,7 @@ def test_neibs_manual():
#print images.get_value(borrow=True)
neibs
=
f
()
print
neibs
#
print neibs
assert
numpy
.
allclose
(
neibs
,[[
0
,
1
,
4
,
5
],
[
2
,
3
,
6
,
7
],
[
8
,
9
,
12
,
13
],
...
...
@@ -410,7 +410,7 @@ def tes_neibs2images_crash_on_grad():
to_images
=
T
.
sum
(
neibs2images
(
neibs
,
(
2
,
2
),
(
2
,
3
,
20
,
20
)))
g
=
T
.
grad
(
to_images
,
neibs
)
fn
=
theano
.
function
([
neibs
],
to_images
,
mode
=
mode_without_gpu
)
print
"Compiled"
#
print "Compiled"
fn
(
neibs_val
)
if
__name__
==
'__main__'
:
...
...
theano/sandbox/test_rng_mrg.py
浏览文件 @
fc75dbf9
差异被折叠。
点击展开。
theano/sparse/tests/test_opt.py
浏览文件 @
fc75dbf9
...
...
@@ -7,14 +7,14 @@ except ImportError:
import
theano
from
theano
import
config
,
tensor
from
theano.sparse
import
(
enable_sparse
,
CSM
,
CSMProperties
,
csm_properties
,
CSC
,
CSR
)
from
theano.sparse.tests.test_basic
import
random_lil
from
theano.sparse
import
enable_sparse
from
theano.gof.python25
import
any
if
not
enable_sparse
:
raise
SkipTest
(
'Optional package sparse disabled'
)
from
theano.sparse
import
CSM
,
CSMProperties
,
csm_properties
,
CSC
,
CSR
from
theano.sparse.tests.test_basic
import
random_lil
def
test_local_csm_properties_csm
():
data
=
tensor
.
vector
()
...
...
theano/sparse/tests/test_sp2.py
浏览文件 @
fc75dbf9
...
...
@@ -13,13 +13,13 @@ import theano
from
theano
import
tensor
as
T
from
theano
import
sparse
as
S
if
not
S
.
enable_sparse
:
raise
SkipTest
(
'Optional package sparse disabled'
)
from
theano.sparse.sandbox
import
sp2
as
S2
from
theano.tests
import
unittest_tools
as
utt
if
S
.
enable_sparse
==
False
:
raise
SkipTest
(
'Optional package sparse disabled'
)
def
as_sparse_format
(
data
,
format
):
if
format
==
'csc'
:
return
scipy
.
sparse
.
csc_matrix
(
data
)
...
...
theano/sparse/tests/test_utils.py
浏览文件 @
fc75dbf9
import
numpy
import
theano.sparse
if
not
theano
.
sparse
.
enable_sparse
:
raise
SkipTest
(
'Optional package sparse disabled'
)
from
theano.sparse.utils
import
hash_from_sparse
from
theano.sparse.tests.test_basic
import
as_sparse_format
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论