Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
36915db6
O
Opencv
项目概览
Greenplum
/
Opencv
10 个月 前同步成功
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
Opencv
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
36915db6
编写于
9月 03, 2020
作者:
A
Alexander Alekhin
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #18260 from alalek:static_code_fixes_2
上级
17640d60
7e019af5
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
6 addition
and
2 deletion
+6
-2
modules/calib3d/src/usac.hpp
modules/calib3d/src/usac.hpp
+3
-1
modules/dnn/src/dnn.cpp
modules/dnn/src/dnn.cpp
+3
-1
未找到文件。
modules/calib3d/src/usac.hpp
浏览文件 @
36915db6
...
...
@@ -405,7 +405,9 @@ struct SPRT_history {
double
epsilon
,
delta
,
A
;
// number of samples processed by test
int
tested_samples
;
// k
SPRT_history
()
{
SPRT_history
()
:
epsilon
(
0
),
delta
(
0
),
A
(
0
)
{
tested_samples
=
0
;
}
};
...
...
modules/dnn/src/dnn.cpp
浏览文件 @
36915db6
...
...
@@ -2731,6 +2731,7 @@ struct Net::Impl : public detail::NetImplBase
bool
fuse_eltwise
=
false
,
fuse_activation
=
false
;
if
(
IS_DNN_OPENCL_TARGET
(
preferableTarget
)
&&
!
nextFusabeleActivLayer
.
empty
()
&&
nextData
&&
(
!
nextData
->
type
.
compare
(
"ReLU"
)
||
!
nextData
->
type
.
compare
(
"ChannelsPReLU"
)
||
!
nextData
->
type
.
compare
(
"Power"
))
&&
...
...
@@ -2753,7 +2754,7 @@ struct Net::Impl : public detail::NetImplBase
if
(
currLayer
->
tryFuse
(
layer
))
{
fuse_eltwise
=
true
;
/* eltwise was successfully fused */
if
(
!
nextFusabeleActivLayer
.
empty
())
if
(
!
nextFusabeleActivLayer
.
empty
()
&&
nextData
)
{
if
((
!
nextData
->
type
.
compare
(
"ReLU"
)
||
!
nextData
->
type
.
compare
(
"ReLU6"
)
||
...
...
@@ -2774,6 +2775,7 @@ struct Net::Impl : public detail::NetImplBase
CV_Assert
(
!
fuse_activation
||
fuse_eltwise
);
/* cannot fuse activation without eltwise */
if
(
fuse_eltwise
&&
fuse_activation
)
{
CV_Assert
(
nextData
);
CV_Assert_N
(
biasLayerData
->
outputBlobsWrappers
.
size
()
==
1
,
ld
.
inputBlobsWrappers
.
size
()
==
1
);
ld
.
inputBlobsWrappers
.
push_back
(
biasLayerData
->
outputBlobsWrappers
[
0
]);
printf_
((
"
\t
fused with %s
\n
"
,
nextEltwiseLayer
->
name
.
c_str
()));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录