Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
magicwindyyd
mindspore
提交
83499884
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看板
提交
83499884
编写于
8月 04, 2020
作者:
E
ervinzhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
adapted test for x86 build
上级
aec85d29
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
18 addition
and
7 deletion
+18
-7
mindspore/lite/src/CMakeLists.txt
mindspore/lite/src/CMakeLists.txt
+4
-1
mindspore/lite/test/CMakeLists.txt
mindspore/lite/test/CMakeLists.txt
+3
-1
mindspore/lite/test/run_test.sh
mindspore/lite/test/run_test.sh
+6
-0
mindspore/lite/test/ut/src/dataset/de_tensor_test.cc
mindspore/lite/test/ut/src/dataset/de_tensor_test.cc
+1
-5
mindspore/lite/test/ut/src/dataset/eager_test.cc
mindspore/lite/test/ut/src/dataset/eager_test.cc
+4
-0
未找到文件。
mindspore/lite/src/CMakeLists.txt
浏览文件 @
83499884
...
...
@@ -81,7 +81,10 @@ target_link_libraries(mindspore-lite
add_subdirectory
(
runtime/kernel/arm
)
if
(
BUILD_MINDDATA
)
target_link_libraries
(
mindspore-lite minddata-eager minddata-lite log
)
target_link_libraries
(
mindspore-lite minddata-eager minddata-lite
)
if
(
PLATFORM_ARM32 OR PLATFORM_ARM64
)
target_link_libraries
(
mindspore-lite log
)
endif
()
endif
()
add_subdirectory
(
ops
)
...
...
mindspore/lite/test/CMakeLists.txt
浏览文件 @
83499884
...
...
@@ -298,8 +298,10 @@ if (BUILD_MINDDATA)
target_link_libraries
(
lite-test
minddata-lite
minddata-eager
log
)
if
(
PLATFORM_ARM32 OR PLATFORM_ARM64
)
target_link_libraries
(
lite-test log
)
endif
()
endif
()
if
(
BUILD_CONVERTER
)
target_link_libraries
(
lite-test
...
...
mindspore/lite/test/run_test.sh
100644 → 100755
浏览文件 @
83499884
...
...
@@ -7,6 +7,12 @@ mkdir -pv ${CUR_DIR}/do_test
cd
${
CUR_DIR
}
/do_test
cp
${
BUILD_DIR
}
/test/lite-test ./
cp
-r
${
CUR_DIR
}
/ut/src/runtime/kernel/arm/test_data/
*
./
## prepare data for dataset
TEST_DATA_DIR
=
${
CUR_DIR
}
/../../../tests/ut/data/dataset/
cp
-fr
$TEST_DATA_DIR
/testPK ./data
./lite-test
--gtest_filter
=
"*MindDataTestTensorDE*"
./lite-test
--gtest_filter
=
"*MindDataTestEager*"
./lite-test
--gtest_filter
=
"*TestHebing*"
...
...
mindspore/lite/test/ut/src/dataset/de_tensor_test.cc
浏览文件 @
83499884
...
...
@@ -90,9 +90,5 @@ TEST_F(MindDataTestTensorDE, MSTensorHash) {
std
::
shared_ptr
<
Tensor
>
t
;
Tensor
::
CreateFromVector
(
x
,
TensorShape
({
2
,
2
}),
&
t
);
auto
ms_tensor
=
std
::
shared_ptr
<
mindspore
::
tensor
::
MSTensor
>
(
new
mindspore
::
tensor
::
DETensor
(
t
));
#ifdef ENABLE_ARM64
ASSERT_EQ
(
ms_tensor
->
hash
()
==
11093771382437
,
true
);
// arm64
#else
ASSERT_EQ
(
ms_tensor
->
hash
()
==
11093825635904
,
true
);
#endif
ASSERT_EQ
(
ms_tensor
->
hash
()
==
11093771382437
,
true
);
}
\ No newline at end of file
mindspore/lite/test/ut/src/dataset/eager_test.cc
浏览文件 @
83499884
...
...
@@ -33,7 +33,11 @@ class MindDataTestEager : public mindspore::Common {
};
TEST_F
(
MindDataTestEager
,
Test1
)
{
#ifdef ENABLE_ARM64 || ENABLE_ARM32
std
::
string
in_dir
=
"/sdcard/data/testPK/data/class1"
;
#else
std
::
string
in_dir
=
"data/testPK/data/class1"
;
#endif
Path
base_dir
=
Path
(
in_dir
);
MS_LOG
(
WARNING
)
<<
base_dir
.
toString
()
<<
"."
;
if
(
!
base_dir
.
IsDirectory
()
||
!
base_dir
.
Exists
())
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录