Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
b816b247
提交
b816b247
authored
5月 15, 2012
作者:
Frederic
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Merge the 2 c_compile_args method in ConvOp!
上级
9aa36490
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
16 行增加
和
17 行删除
+16
-17
conv.py
theano/tensor/nnet/conv.py
+16
-17
没有找到文件。
theano/tensor/nnet/conv.py
浏览文件 @
b816b247
...
@@ -202,20 +202,6 @@ class ConvOp(Op):
...
@@ -202,20 +202,6 @@ class ConvOp(Op):
#valid time, full time
#valid time, full time
speed_unroll_patch_shape
=
[
1.2967290878295898
,
5.5283889770507812
]
speed_unroll_patch_shape
=
[
1.2967290878295898
,
5.5283889770507812
]
def
c_compile_args
(
self
):
#when the ksph==(1,1) gcc 4.3.0 segfault during the compilation with -O3.
#This don't happen at -O2
if
theano
.
gof
.
cmodule
.
gcc_version
()
in
[
'4.3.0'
]
and
self
.
kshp
==
(
1
,
1
):
return
[
'-O2'
]
else
:
return
[]
def
c_no_compile_args
(
self
):
#when the ksph==(1,1) gcc 4.3.0 segfault during the compilation with -O3.
#This don't happen at -O2
if
theano
.
gof
.
cmodule
.
gcc_version
()
in
[
'4.3.0'
]
and
self
.
kshp
==
(
1
,
1
):
return
[
'-O3'
]
else
:
return
[]
@staticmethod
@staticmethod
def
getOutputShape
(
inshp
,
kshp
,
stride
=
(
1
,
1
),
mode
=
'valid'
):
def
getOutputShape
(
inshp
,
kshp
,
stride
=
(
1
,
1
),
mode
=
'valid'
):
"""
"""
...
@@ -881,16 +867,29 @@ using namespace std;
...
@@ -881,16 +867,29 @@ using namespace std;
return
True
return
True
return
False
return
False
def
c_libraries
(
self
):
def
c_libraries
(
self
):
if
self
.
use_blas
():
if
self
.
use_blas
():
return
blas
.
ldflags
()
return
blas
.
ldflags
()
return
[]
return
[]
def
c_no_compile_args
(
self
):
#when the ksph==(1,1) gcc 4.3.0 segfault during the
#compilation with -O3. This don't happen at -O2
if
theano
.
gof
.
cmodule
.
gcc_version
()
in
[
'4.3.0'
]
and
self
.
kshp
==
(
1
,
1
):
return
[
'-O3'
]
else
:
return
[]
def
c_compile_args
(
self
):
def
c_compile_args
(
self
):
ret
=
[]
if
self
.
use_blas
():
if
self
.
use_blas
():
return
blas
.
ldflags
(
libs
=
False
,
flags
=
True
)
ret
=
blas
.
ldflags
(
libs
=
False
,
flags
=
True
)
return
[]
if
theano
.
gof
.
cmodule
.
gcc_version
()
in
[
'4.3.0'
]
and
self
.
kshp
==
(
1
,
1
):
ret
+=
[
'-O2'
]
ret
+=
[
'-fopenmp'
]
return
ret
def
c_lib_dirs
(
self
):
def
c_lib_dirs
(
self
):
if
self
.
use_blas
():
if
self
.
use_blas
():
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论