Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
magicwindyyd
mindspore
提交
729d847d
M
mindspore
项目概览
magicwindyyd
/
mindspore
与 Fork 源项目一致
Fork自
MindSpore / mindspore
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
mindspore
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
729d847d
编写于
8月 08, 2020
作者:
M
mindspore-ci-bot
提交者:
Gitee
8月 08, 2020
浏览文件
操作
浏览文件
下载
差异文件
!4083 Added minddata packaging with ms-lite
Merge pull request !4083 from EricZ/header_fix
上级
952996c3
966438b3
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
37 addition
and
2 deletion
+37
-2
build.sh
build.sh
+36
-0
mindspore/lite/test/ut/src/dataset/eager_test.cc
mindspore/lite/test/ut/src/dataset/eager_test.cc
+1
-2
未找到文件。
build.sh
浏览文件 @
729d847d
...
...
@@ -569,6 +569,39 @@ build_minddata_lite_deps()
build_jpeg_turbo
}
prepare_md_lite
()
{
if
[
"
${
COMPILE_MINDDATA_LITE
}
"
==
"on"
]
;
then
echo
"packaging minddata"
cp
${
BASEPATH
}
/mindspore/ccsrc/minddata/dataset/include/
*
h
${
OUTPUT_DIR
}
/include/
cp
${
BASEPATH
}
/mindspore/lite/build/minddata/libminddata-lite.so
${
OUTPUT_DIR
}
/lib/
if
[[
"
$LITE_PLATFORM
"
==
"x86_64"
]]
;
then
mkdir
-p
${
OUTPUT_DIR
}
/third_party/libjpeg-turbo/lib
cp
-r
${
BASEPATH
}
/third_party/libjpeg-turbo/lib/libjpeg.so
${
OUTPUT_DIR
}
/third_party/libjpeg-turbo/lib/
cp
-r
${
BASEPATH
}
/third_party/libjpeg-turbo/lib/libturbojpeg.so
${
OUTPUT_DIR
}
/third_party/libjpeg-turbo/lib/
mkdir
-p
${
OUTPUT_DIR
}
/third_party/opencv/lib/
cp
-r
${
BASEPATH
}
/third_party/opencv/build/lib/libopencv_core.so
${
OUTPUT_DIR
}
/third_party/opencv/lib/
cp
-r
${
BASEPATH
}
/third_party/opencv/build/lib/libopencv_imgcodecs.so
${
OUTPUT_DIR
}
/third_party/opencv/lib/
cp
-r
${
BASEPATH
}
/third_party/opencv/build/lib/libopencv_imgproc.so
${
OUTPUT_DIR
}
/third_party/opencv/lib/
elif
[[
"
$LITE_PLATFORM
"
==
"arm64"
]]
;
then
mkdir
-p
${
OUTPUT_DIR
}
/third_party/libjpeg-turbo/lib
cp
-r
${
BASEPATH
}
/third_party/libjpeg-turbo/lib/libjpeg.so
${
OUTPUT_DIR
}
/third_party/libjpeg-turbo/lib/
cp
-r
${
BASEPATH
}
/third_party/libjpeg-turbo/lib/libturbojpeg.so
${
OUTPUT_DIR
}
/third_party/libjpeg-turbo/lib/
mkdir
-p
${
OUTPUT_DIR
}
/third_party/opencv/lib/arm64-v8a/
cp
-r
${
BASEPATH
}
/third_party/opencv/build/lib/arm64-v8a/libopencv_core.so
${
OUTPUT_DIR
}
/third_party/opencv/lib/arm64-v8a/
cp
-r
${
BASEPATH
}
/third_party/opencv/build/lib/arm64-v8a/libopencv_imgcodecs.so
${
OUTPUT_DIR
}
/third_party/opencv/lib/arm64-v8a/
cp
-r
${
BASEPATH
}
/third_party/opencv/build/lib/arm64-v8a/libopencv_imgproc.so
${
OUTPUT_DIR
}
/third_party/opencv/lib/arm64-v8a/
elif
[[
"
$LITE_PLATFORM
"
==
"arm32"
]]
;
then
mkdir
-p
${
OUTPUT_DIR
}
/third_party/libjpeg-turbo/lib
cp
-r
${
BASEPATH
}
/third_party/libjpeg-turbo/lib/libjpeg.so
${
OUTPUT_DIR
}
/third_party/libjpeg-turbo/lib/
cp
-r
${
BASEPATH
}
/third_party/libjpeg-turbo/lib/libturbojpeg.so
${
OUTPUT_DIR
}
/third_party/libjpeg-turbo/lib/
mkdir
-p
${
OUTPUT_DIR
}
/third_party/opencv/lib/armeabi-v7a/
cp
-r
${
BASEPATH
}
/third_party/opencv/build/lib/armeabi-v7a/libopencv_core.so
${
OUTPUT_DIR
}
/third_party/opencv/lib/armeabi-v7a/
cp
-r
${
BASEPATH
}
/third_party/opencv/build/lib/armeabi-v7a/libopencv_imgcodecs.so
${
OUTPUT_DIR
}
/third_party/opencv/lib/armeabi-v7a/
cp
-r
${
BASEPATH
}
/third_party/opencv/build/lib/armeabi-v7a/libopencv_imgproc.so
${
OUTPUT_DIR
}
/third_party/opencv/lib/armeabi-v7a/
fi
fi
}
build_lite
()
{
echo
"start build mindspore lite project"
...
...
@@ -632,6 +665,7 @@ build_lite()
mkdir
-p
${
OUTPUT_DIR
}
/converter
&&
mkdir
-p
${
OUTPUT_DIR
}
/time_profile
mkdir
-p
${
OUTPUT_DIR
}
/benchmark
&&
mkdir
-p
${
OUTPUT_DIR
}
/include
&&
mkdir
-p
${
OUTPUT_DIR
}
/lib
mkdir
-p
${
OUTPUT_DIR
}
/third_party
prepare_md_lite
cp
${
BASEPATH
}
/mindspore/lite/build/tools/converter/converter_lite
${
OUTPUT_DIR
}
/converter/
cp
${
BASEPATH
}
/mindspore/lite/build/tools/benchmark/benchmark
${
OUTPUT_DIR
}
/benchmark/
cp
${
BASEPATH
}
/mindspore/lite/build/tools/time_profile/timeprofile
${
OUTPUT_DIR
}
/time_profile/
...
...
@@ -657,6 +691,7 @@ build_lite()
mkdir
-p
${
OUTPUT_DIR
}
/time_profile
&&
mkdir
-p
${
OUTPUT_DIR
}
/benchmark
mkdir
-p
${
OUTPUT_DIR
}
/include
&&
mkdir
-p
${
OUTPUT_DIR
}
/lib
mkdir
-p
${
OUTPUT_DIR
}
/third_party
prepare_md_lite
cp
${
BASEPATH
}
/mindspore/lite/build/tools/benchmark/benchmark
${
OUTPUT_DIR
}
/benchmark/
cp
${
BASEPATH
}
/mindspore/lite/build/tools/time_profile/timeprofile
${
OUTPUT_DIR
}
/time_profile/
cp
${
BASEPATH
}
/mindspore/lite/include/
*
.h
${
OUTPUT_DIR
}
/include/
...
...
@@ -677,6 +712,7 @@ build_lite()
mkdir
-p
${
OUTPUT_DIR
}
/time_profile
&&
mkdir
-p
${
OUTPUT_DIR
}
/benchmark
mkdir
-p
${
OUTPUT_DIR
}
/include
&&
mkdir
-p
${
OUTPUT_DIR
}
/lib
mkdir
-p
${
OUTPUT_DIR
}
/third_party
prepare_md_lite
cp
${
BASEPATH
}
/mindspore/lite/build/tools/benchmark/benchmark
${
OUTPUT_DIR
}
/benchmark/
cp
${
BASEPATH
}
/mindspore/lite/build/tools/time_profile/timeprofile
${
OUTPUT_DIR
}
/time_profile/
cp
${
BASEPATH
}
/mindspore/lite/include/
*
.h
${
OUTPUT_DIR
}
/include/
...
...
mindspore/lite/test/ut/src/dataset/eager_test.cc
浏览文件 @
729d847d
...
...
@@ -17,8 +17,7 @@
#include "common/common_test.h"
#include "gtest/gtest.h"
#include "./securec.h"
#include "minddata/dataset/core/tensor.h"
#include "minddata/dataset/core/config_manager.h"
#include "minddata/dataset/include/tensor.h"
#include "minddata/dataset/include/datasets.h"
#include "minddata/dataset/include/execute.h"
#include "minddata/dataset/util/path.h"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录