Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
f2b92542
提交
f2b92542
authored
1月 27, 2010
作者:
Dumitru Erhan
浏览文件
操作
浏览文件
下载
差异文件
merge
上级
4e231aaa
194680bc
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
14 行增加
和
7 行删除
+14
-7
test_debugmode.py
theano/compile/tests/test_debugmode.py
+1
-1
__init__.py
theano/sparse/__init__.py
+8
-1
basic.py
theano/sparse/basic.py
+0
-4
test_basic.py
theano/sparse/tests/test_basic.py
+4
-0
unittest_tools.py
theano/tests/unittest_tools.py
+1
-1
没有找到文件。
theano/compile/tests/test_debugmode.py
浏览文件 @
f2b92542
import
sys
import
numpy
,
scipy
import
numpy
import
scipy.sparse
from
theano
import
gof
...
...
theano/sparse/__init__.py
浏览文件 @
f2b92542
import
sys
,
scipy
from
basic
import
*
enable_sparse
=
True
if
not
scipy
.
__version__
.
startswith
(
'0.7.'
):
sys
.
stderr
.
write
(
"WARNING: scipy version =
%
s. We request version >=0.7.0 for the sparse code as it has bugs fixed in the sparse matrix code.
\n
"
%
scipy
.
__version__
)
enable_sparse
=
False
if
enable_sparse
:
from
basic
import
*
theano/sparse/basic.py
浏览文件 @
f2b92542
...
...
@@ -29,10 +29,6 @@ _mtypes = [sparse.csc_matrix, sparse.csr_matrix]
#* new class ``bsr_matrix`` : the Block CSR format
_mtype_to_str
=
{
sparse
.
csc_matrix
:
"csc"
,
sparse
.
csr_matrix
:
"csr"
}
import
scipy
if
not
scipy
.
__version__
.
startswith
(
'0.7.'
):
sys
.
stderr
.
write
(
"WARNING: scipy version =
%
s. We prefer version >=0.7.0 because it has bugs fixed in the sparse matrix code.
\n
"
%
scipy
.
__version__
)
def
_is_sparse_variable
(
x
):
"""
@rtype: boolean
...
...
theano/sparse/tests/test_basic.py
浏览文件 @
f2b92542
import
scipy.sparse
from
theano.sparse
import
*
from
nose.plugins.skip
import
SkipTest
if
enable_sparse
==
False
:
raise
SkipTest
(
'Optional package sparse disabled'
)
import
random
import
unittest
import
theano
...
...
theano/tests/unittest_tools.py
浏览文件 @
f2b92542
import
unittest
import
numpy
import
theano.tensor
as
T
from
.
.configparser
import
config
,
AddConfigVar
,
IntParam
from
theano
.configparser
import
config
,
AddConfigVar
,
IntParam
import
os
,
sys
AddConfigVar
(
'unittests.rseed'
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论