Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
ecdfbb8c
提交
ecdfbb8c
authored
7月 20, 2017
作者:
Pascal Lamblin
提交者:
GitHub
7月 20, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #6173 from abergeron/fix_nogpp
Fix tests that always expect a C compiler
上级
0e99b3ad
1f8b5a6f
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
12 行增加
和
1 行删除
+12
-1
configdefaults.py
theano/configdefaults.py
+1
-1
test_types.py
theano/gof/tests/test_types.py
+2
-0
test_vm.py
theano/gof/tests/test_vm.py
+2
-0
test_abstract_conv.py
theano/tensor/nnet/tests/test_abstract_conv.py
+7
-0
没有找到文件。
theano/configdefaults.py
浏览文件 @
ecdfbb8c
...
...
@@ -455,7 +455,7 @@ if param and os.name == 'nt':
def
warn_cxx
(
val
):
"""We only support clang++ as otherwise we hit strange g++/OSX bugs."""
if
sys
.
platform
==
'darwin'
and
'clang++'
not
in
val
:
if
sys
.
platform
==
'darwin'
and
val
and
'clang++'
not
in
val
:
_logger
.
warning
(
"Only clang++ is supported. With g++,"
" we end up with strange g++/OSX bugs."
)
return
True
...
...
theano/gof/tests/test_types.py
浏览文件 @
ecdfbb8c
...
...
@@ -252,6 +252,8 @@ class TestEnumTypes(TestCase):
assert
ref
==
out
,
(
ref
,
out
)
def
test_op_with_cenumtype
(
self
):
if
theano
.
config
.
cxx
==
''
:
raise
SkipTest
(
'need c++'
)
sizeof_int
=
MyOpCEnumType
(
'int'
)()
sizeof_float
=
MyOpCEnumType
(
'float'
)()
sizeof_long_long
=
MyOpCEnumType
(
'long long'
)()
...
...
theano/gof/tests/test_vm.py
浏览文件 @
ecdfbb8c
...
...
@@ -441,6 +441,8 @@ def test_reallocation():
def
test_no_recycling
():
if
theano
.
config
.
cxx
==
''
:
raise
SkipTest
(
'need c++'
)
x
=
theano
.
tensor
.
vector
()
for
lnk
in
[
vm
.
VM_Linker
(
use_cloop
=
True
),
vm
.
VM_Linker
(
use_cloop
=
False
,
lazy
=
True
),
...
...
theano/tensor/nnet/tests/test_abstract_conv.py
浏览文件 @
ecdfbb8c
...
...
@@ -771,6 +771,10 @@ class TestAbstractConvNoOptim(BaseTestConv2d):
mode
=
mode
)
def
tcase_gi
(
self
,
i
,
f
,
o
,
s
,
b
,
flip
,
provide_shape
,
fd
=
(
1
,
1
),
expect_error
=
False
):
if
not
theano
.
config
.
cxx
:
raise
SkipTest
(
"Need cxx to test conv2d"
)
mode
=
theano
.
Mode
(
optimizer
=
None
)
if
not
expect_error
:
self
.
run_gradinput
(
inputs_shape
=
i
,
filters_shape
=
f
,
...
...
@@ -905,6 +909,9 @@ class TestCpuConv2d(BaseTestConv2d):
filter_dilation
=
fd
)
def
tcase_gi
(
self
,
i
,
f
,
o
,
s
,
b
,
flip
,
provide_shape
,
fd
=
(
1
,
1
),
expect_error
=
False
):
if
not
theano
.
config
.
cxx
:
raise
SkipTest
(
"Need cxx to test conv2d"
)
if
fd
!=
(
1
,
1
):
raise
SkipTest
(
"No dilation implementation for basic cpu ConvOp."
)
mode
=
self
.
mode
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论