Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
3b897348
P
Paddle-Lite
项目概览
PaddlePaddle
/
Paddle-Lite
通知
332
Star
4
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
271
列表
看板
标记
里程碑
合并请求
78
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle-Lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
271
Issue
271
列表
看板
标记
里程碑
合并请求
78
合并请求
78
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
3b897348
编写于
6月 07, 2018
作者:
L
liuruilong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
format files
上级
3a46cd77
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
74 addition
and
66 deletion
+74
-66
src/common/enforce.h
src/common/enforce.h
+1
-2
src/common/type_define.h
src/common/type_define.h
+0
-1
src/common/variant.h
src/common/variant.h
+0
-1
src/framework/attribute.h
src/framework/attribute.h
+1
-1
src/framework/program/program-optimize/fusion_op_register.h
src/framework/program/program-optimize/fusion_op_register.h
+1
-1
src/framework/program/program-optimize/node.cpp
src/framework/program/program-optimize/node.cpp
+1
-1
src/operators/pool_op.h
src/operators/pool_op.h
+1
-1
src/operators/sigmoid_op.h
src/operators/sigmoid_op.h
+1
-1
src/operators/softmax_op.h
src/operators/softmax_op.h
+1
-1
test/common/test_lib_size.cpp
test/common/test_lib_size.cpp
+14
-3
test/common/test_lib_size.h
test/common/test_lib_size.h
+49
-50
test/common/test_openmp.cpp
test/common/test_openmp.cpp
+4
-3
未找到文件。
src/common/enforce.h
浏览文件 @
3b897348
...
...
@@ -31,8 +31,7 @@ struct PaddleMobileException : public std::exception {
PaddleMobileException
(
const
char
*
header
,
const
char
*
detail
,
const
char
*
file
,
const
int
line
)
{
char
buffer
[
1500
];
snprintf
(
buffer
,
sizeof
(
buffer
),
snprintf
(
buffer
,
sizeof
(
buffer
),
"%s| %s
\n
| [in file] : %s
\n
| [on line] : %d
\n
| [detail] : %s
\n
"
,
exception_prefix
.
c_str
(),
header
,
file
,
line
,
detail
);
message
=
std
::
string
(
buffer
);
...
...
src/common/type_define.h
浏览文件 @
3b897348
...
...
@@ -39,7 +39,6 @@ using OpCreator = std::function<framework::OperatorBase<Dtype> *(
const
framework
::
AttributeMap
&
/*attrs*/
,
std
::
shared_ptr
<
framework
::
Scope
>
/*scope*/
)
>
;
using
InferVarTypeFN
=
std
::
function
<
void
(
const
framework
::
OpDesc
&
/*op_desc*/
,
framework
::
BlockDesc
*
/*block*/
)
>
;
...
...
src/common/variant.h
浏览文件 @
3b897348
...
...
@@ -12,7 +12,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */
#include "common/log.h"
#pragma once
...
...
src/framework/attribute.h
浏览文件 @
3b897348
...
...
@@ -15,8 +15,8 @@ limitations under the License. */
#pragma once
#include <string>
#include <vector>
#include <unordered_map>
#include <vector>
#include "common/enforce.h"
#include "common/log.h"
...
...
src/framework/program/program-optimize/fusion_op_register.h
浏览文件 @
3b897348
...
...
@@ -17,8 +17,8 @@ limitations under the License. */
#include <map>
#include <string>
#include "node.h"
#include "framework/operator.h"
#include "node.h"
namespace
paddle_mobile
{
namespace
framework
{
...
...
src/framework/program/program-optimize/node.cpp
浏览文件 @
3b897348
...
...
@@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */
#include "framework/operator.h"
#include "framework/program/program-optimize/node.h"
#include "framework/operator.h"
namespace
paddle_mobile
{
...
...
src/operators/pool_op.h
浏览文件 @
3b897348
...
...
@@ -19,8 +19,8 @@ limitations under the License. */
#include <string>
#include "framework/operator.h"
#include "operators/op_param.h"
#include "operators/kernel/pool_kernel.h"
#include "operators/op_param.h"
namespace
paddle_mobile
{
namespace
operators
{
...
...
src/operators/sigmoid_op.h
浏览文件 @
3b897348
...
...
@@ -19,8 +19,8 @@ limitations under the License. */
#include <string>
#include "framework/operator.h"
#include "operators/op_param.h"
#include "operators/kernel/sigmoid_kernel.h"
#include "operators/op_param.h"
namespace
paddle_mobile
{
namespace
operators
{
...
...
src/operators/softmax_op.h
浏览文件 @
3b897348
...
...
@@ -19,8 +19,8 @@ limitations under the License. */
#include <string>
#include "framework/operator.h"
#include "operators/op_param.h"
#include "operators/kernel/softmax_kernel.h"
#include "operators/op_param.h"
namespace
paddle_mobile
{
namespace
operators
{
...
...
test/common/test_lib_size.cpp
浏览文件 @
3b897348
/* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */
//
// Created by liuRuiLong on 2018/6/6.
//
#include "test_lib_size.h"
static
test_lib_size
t
;
test/common/test_lib_size.h
浏览文件 @
3b897348
/* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */
//
// Created by liuRuiLong on 2018/6/6.
//
...
...
@@ -23,72 +37,57 @@
//#include <stdio.h>
//#include <cstring>
void
foo
(){
// char *str = "1234";
// char dst[10];
// strcpy(dst, str);
void
foo
()
{
// char *str = "1234";
// char dst[10];
// strcpy(dst, str);
// std::cout << "12345" << std::endl;
// std::cout << "12345" << std::endl;
std
::
vector
<
int
>
vec
=
{
1
,
2
,
3
,
4
,
5
};
// std::find(vec.begin(), vec.end(), 1);
// std::find(vec.begin(), vec.end(), 1);
// std::find(vec.begin(), vec.end(), 1);
// std::find(vec.begin(), vec.end(), 1);
// std::list<int> l;
// std::mutex mutex_;
// std::list<int> l;
// std::mutex mutex_;
// std::map<int, float> m;
// std::unordered_map<int, float> u_m;
// std::unordered_set<int> u_s;
// std::string ss = "12345";
// printf("%f", ss.c_str());
// std::map<int, float> m;
// std::unordered_map<int, float> u_m;
// std::unordered_set<int> u_s;
// std::string ss = "12345";
// printf("%f", ss.c_str());
// std::initializer_list<int> init_list = {1, 2};
// std::tuple<int, int> t = {1, 2};
// std::initializer_list<int> init_list = {1, 2};
// std::tuple<int, int> t = {1, 2};
// std::tuple_element<I, std::tuple<ARGS...>>::type
// std::tuple<>
// int i;
// int j;
// if (typeid(i) == typeid(j)){
// int z = 10;
// }
// std::tuple<>
// int i;
// int j;
// if (typeid(i) == typeid(j)){
// int z = 10;
// }
std
::
shared_ptr
<
int
>
s1
=
std
::
make_shared
<
int
>
();
// std::stringstream ss;
// ss << "12345";
// std::stringstream ss;
// ss << "12345";
}
class
test_lib_size
{
public:
test_lib_size
(){
}
// std::shared_ptr<int> Test(){
// std::vector<int> vec = {1, 2, 3};
// std::shared_ptr<int> si = std::make_shared<int>();
// return si;
// }
// void test(){
// int i = 9;
// }
test_lib_size
()
{}
// std::shared_ptr<int> Test(){
// std::vector<int> vec = {1, 2, 3};
// std::shared_ptr<int> si = std::make_shared<int>();
// return si;
// }
// void test(){
// int i = 9;
// }
};
#endif //PADDLE_MOBILE_TEST_LIB_SIZE_H
#endif // PADDLE_MOBILE_TEST_LIB_SIZE_H
test/common/test_openmp.cpp
浏览文件 @
3b897348
...
...
@@ -18,9 +18,10 @@ limitations under the License. */
int
main
(
void
)
{
#pragma omp parallel num_threads(2)
{
// int thread_id = omp_get_thread_num();
// int nthreads = omp_get_num_threads();
// std::cout << "Hello, OMP " << thread_id << "/" << nthreads << "\n";
// int thread_id = omp_get_thread_num();
// int nthreads = omp_get_num_threads();
// std::cout << "Hello, OMP " << thread_id << "/" << nthreads <<
// "\n";
}
return
0
;
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录