Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
67250859
提交
67250859
authored
11月 11, 2015
作者:
Rémy Léone
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Simplify comparisons
上级
97cf87dc
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
6 行增加
和
7 行删除
+6
-7
dnn.py
theano/sandbox/cuda/dnn.py
+1
-1
dnn.py
theano/sandbox/gpuarray/dnn.py
+1
-1
scan_opt.py
theano/scan_module/scan_opt.py
+1
-2
test_basic.py
theano/sparse/tests/test_basic.py
+1
-1
basic.py
theano/tensor/basic.py
+1
-1
elemwise.py
theano/tensor/elemwise.py
+1
-1
没有找到文件。
theano/sandbox/cuda/dnn.py
浏览文件 @
67250859
...
@@ -105,7 +105,7 @@ if ((err = cudnnCreate(&_handle)) != CUDNN_STATUS_SUCCESS) {
...
@@ -105,7 +105,7 @@ if ((err = cudnnCreate(&_handle)) != CUDNN_STATUS_SUCCESS) {
" This isn't supported anymore."
" This isn't supported anymore."
" Update to CuDNN v2 final version."
)
" Update to CuDNN v2 final version."
)
raise
RuntimeError
(
dnn_available
.
msg
)
raise
RuntimeError
(
dnn_available
.
msg
)
if
v
[
0
]
>=
3000
and
v
[
0
]
<
3007
:
if
3000
<=
v
[
0
]
<
3007
:
# 3007 is the final release of cudnn v3
# 3007 is the final release of cudnn v3
dnn_available
.
avail
=
False
dnn_available
.
avail
=
False
dnn_available
.
msg
=
(
dnn_available
.
msg
=
(
...
...
theano/sandbox/gpuarray/dnn.py
浏览文件 @
67250859
...
@@ -74,7 +74,7 @@ def _dnn_check_version():
...
@@ -74,7 +74,7 @@ def _dnn_check_version():
"You have an old release of CuDNN (or a release candidate) "
"You have an old release of CuDNN (or a release candidate) "
"that isn't supported. Please update to at least v2 final "
"that isn't supported. Please update to at least v2 final "
"version."
)
"version."
)
if
v
>=
3000
and
v
<
3007
:
if
3000
<=
v
<
3007
:
return
False
,
(
return
False
,
(
"You have installed a release candidate of CuDNN v3. This "
"You have installed a release candidate of CuDNN v3. This "
"isn't supported. Please update to v3 final version."
)
"isn't supported. Please update to v3 final version."
)
...
...
theano/scan_module/scan_opt.py
浏览文件 @
67250859
...
@@ -1444,8 +1444,7 @@ class ScanSaveMem(gof.Optimizer):
...
@@ -1444,8 +1444,7 @@ class ScanSaveMem(gof.Optimizer):
last_sitsot_idx
=
(
node
.
op
.
n_mit_mot
+
last_sitsot_idx
=
(
node
.
op
.
n_mit_mot
+
node
.
op
.
n_mit_sot
+
node
.
op
.
n_mit_sot
+
node
.
op
.
n_sit_sot
-
1
)
node
.
op
.
n_sit_sot
-
1
)
preallocable_output
=
(
i
>=
first_mitsot_idx
and
preallocable_output
=
(
first_mitsot_idx
<=
i
<=
last_sitsot_idx
)
i
<=
last_sitsot_idx
)
if
(
prealloc_outs
and
preallocable_output
):
if
(
prealloc_outs
and
preallocable_output
):
pval
=
select_max
(
nw_steps
-
start
+
init_l
[
i
],
pval
=
select_max
(
nw_steps
-
start
+
init_l
[
i
],
...
...
theano/sparse/tests/test_basic.py
浏览文件 @
67250859
...
@@ -117,7 +117,7 @@ def sparse_random_inputs(format, shape, n=1, out_dtype=None, p=0.5, gap=None,
...
@@ -117,7 +117,7 @@ def sparse_random_inputs(format, shape, n=1, out_dtype=None, p=0.5, gap=None,
if
out_dtype
is
None
:
if
out_dtype
is
None
:
out_dtype
=
theano
.
config
.
floatX
out_dtype
=
theano
.
config
.
floatX
assert
0
<=
p
and
p
<=
1
assert
0
<=
p
<=
1
assert
len
(
shape
)
==
2
assert
len
(
shape
)
==
2
assert
out_dtype
in
sparse
.
all_dtypes
assert
out_dtype
in
sparse
.
all_dtypes
assert
gap
is
None
or
isinstance
(
gap
,
(
tuple
,
list
))
assert
gap
is
None
or
isinstance
(
gap
,
(
tuple
,
list
))
...
...
theano/tensor/basic.py
浏览文件 @
67250859
...
@@ -432,7 +432,7 @@ def constant(x, name=None, ndim=None, dtype=None):
...
@@ -432,7 +432,7 @@ def constant(x, name=None, ndim=None, dtype=None):
return
ret
return
ret
sig
=
ret
.
signature
()
sig
=
ret
.
signature
()
if
(
sig
not
in
constant_cache
and
ret
.
data
.
size
==
1
and
if
(
sig
not
in
constant_cache
and
ret
.
data
.
size
==
1
and
ret
.
data
<=
10
and
ret
.
data
>=
-
10
and
(
-
10
)
<=
ret
.
data
<=
10
and
(
ret
.
dtype
in
int_dtypes
or
ret
.
dtype
in
uint_dtypes
or
(
ret
.
dtype
in
int_dtypes
or
ret
.
dtype
in
uint_dtypes
or
(
ret
.
dtype
in
float_dtypes
and
int
(
ret
.
data
)
==
ret
.
data
))):
(
ret
.
dtype
in
float_dtypes
and
int
(
ret
.
data
)
==
ret
.
data
))):
constant_cache
[
sig
]
=
ret
constant_cache
[
sig
]
=
ret
...
...
theano/tensor/elemwise.py
浏览文件 @
67250859
...
@@ -527,7 +527,7 @@ class Elemwise(OpenMPOp):
...
@@ -527,7 +527,7 @@ class Elemwise(OpenMPOp):
self
.
nfunc
=
None
self
.
nfunc
=
None
if
getattr
(
self
,
'nfunc_spec'
,
None
):
if
getattr
(
self
,
'nfunc_spec'
,
None
):
self
.
nfunc
=
getattr
(
numpy
,
self
.
nfunc_spec
[
0
])
self
.
nfunc
=
getattr
(
numpy
,
self
.
nfunc_spec
[
0
])
elif
self
.
scalar_op
.
nin
>
0
and
self
.
scalar_op
.
nin
<
32
:
elif
0
<
self
.
scalar_op
.
nin
<
32
:
self
.
ufunc
=
numpy
.
frompyfunc
(
self
.
scalar_op
.
impl
,
self
.
ufunc
=
numpy
.
frompyfunc
(
self
.
scalar_op
.
impl
,
self
.
scalar_op
.
nin
,
self
.
scalar_op
.
nin
,
self
.
scalar_op
.
nout
)
self
.
scalar_op
.
nout
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论