Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OAID
Tengine
提交
3905a5cb
T
Tengine
项目概览
OAID
/
Tengine
11 个月 前同步成功
通知
53
Star
4429
Fork
1032
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Tengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
3905a5cb
编写于
5月 09, 2021
作者:
B
BUG1989
提交者:
GitHub
5月 09, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix security (#655)
* fix, some warning * fix alerts
上级
dc90705e
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
5 addition
and
5 deletion
+5
-5
examples/tm_yolofastest.cpp
examples/tm_yolofastest.cpp
+1
-1
examples/tm_yolov5s_timvx.cpp
examples/tm_yolov5s_timvx.cpp
+1
-1
source/device/cpu/op/conv/x86/conv_dw_kernel_x86.c
source/device/cpu/op/conv/x86/conv_dw_kernel_x86.c
+1
-1
source/device/cpu/op/pooling/x86/pooling_pack_hcl_x86.h
source/device/cpu/op/pooling/x86/pooling_pack_hcl_x86.h
+1
-1
source/device/cpu/op/rnn/rnn_ref.c
source/device/cpu/op/rnn/rnn_ref.c
+1
-1
未找到文件。
examples/tm_yolofastest.cpp
浏览文件 @
3905a5cb
...
...
@@ -454,7 +454,7 @@ static void run_yolo(graph_t graph, std::vector<BBoxRect> &boxes, int img_width,
bool
letterbox
=
false
;
float
roi_left
=
0.
f
,
roi_top
=
0.
f
,
roi_width
=
1.
f
,
roi_height
=
1.
f
;
if
(
true
==
letterbox
)
if
(
letterbox
)
{
if
(
img_width
>
img_height
)
{
...
...
examples/tm_yolov5s_timvx.cpp
浏览文件 @
3905a5cb
...
...
@@ -294,7 +294,7 @@ void get_input_data_focus_uint8(const char* image_file, uint8_t* input_data, int
img_new
.
convertTo
(
img_new
,
CV_32FC3
);
float
*
img_data
=
(
float
*
)
img_new
.
data
;
float
*
input_temp
=
(
float
*
)
malloc
(
3
*
letterbox_cols
*
letterbox_rows
*
sizeof
(
float
));
float
*
input_temp
=
(
float
*
)
malloc
(
3
*
(
size_t
)
letterbox_cols
*
letterbox_rows
*
sizeof
(
float
));
/* nhwc to nchw */
for
(
int
h
=
0
;
h
<
letterbox_rows
;
h
++
)
...
...
source/device/cpu/op/conv/x86/conv_dw_kernel_x86.c
浏览文件 @
3905a5cb
...
...
@@ -2565,7 +2565,7 @@ int conv_dw_run(struct tensor* input_tensor, struct tensor* weight_tensor, struc
input_tmp
=
input
;
else
{
input_tmp
=
(
float
*
)
sys_malloc
(
inh_tmp
*
inw_tmp
*
group
*
sizeof
(
float
));
input_tmp
=
(
float
*
)
sys_malloc
(
(
size_t
)
inh_tmp
*
inw_tmp
*
group
*
sizeof
(
float
));
#pragma omp parallel for num_threads(num_thread)
for
(
int
g
=
0
;
g
<
group
;
g
++
)
{
...
...
source/device/cpu/op/pooling/x86/pooling_pack_hcl_x86.h
浏览文件 @
3905a5cb
...
...
@@ -1716,7 +1716,7 @@ static void pack4(float* input, float* input_buffer, int in_h, int in_w)
{
for
(
int
c
=
0
;
c
<
PACK4
;
c
++
)
{
input_buffer
[
i
*
in_w
*
PACK4
+
j
*
PACK4
+
c
]
=
input
[
c
*
in_w
*
in_h
+
i
*
in_w
+
j
];
input_buffer
[
i
*
in_w
*
PACK4
+
j
*
PACK4
+
c
]
=
input
[
(
unsigned
long
)
c
*
in_w
*
in_h
+
i
*
in_w
+
j
];
}
}
}
...
...
source/device/cpu/op/rnn/rnn_ref.c
浏览文件 @
3905a5cb
...
...
@@ -223,7 +223,7 @@ static int run(struct node_ops* node_ops, struct exec_node* exec_node, struct ex
int
batch_size
=
input_tensor
->
dims
[
1
];
int
output_len
=
rnn_param
->
output_len
;
float
*
init_h
=
(
float
*
)
malloc
(
batch_size
*
hidden_size
*
sizeof
(
float
));
float
*
init_h
=
(
float
*
)
malloc
(
(
size_t
)
batch_size
*
hidden_size
*
sizeof
(
float
));
if
(
init_h
==
NULL
)
{
return
-
1
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录