提交 c5ea86af 编写于 作者: Z Zhu Guodong

change mindspore ndk target

Signed-off-by: NZhu Guodong <zhuguodong0001@163.com>
Change-Id: I0bfb3669ae0e9a96709af6b0dce9623e5b23e762
上级 05edbdf0
...@@ -32,7 +32,7 @@ ohos_moduletest_suite("ActsMindSporeTest") { ...@@ -32,7 +32,7 @@ ohos_moduletest_suite("ActsMindSporeTest") {
deps = [ deps = [
"//third_party/googletest:gmock", "//third_party/googletest:gmock",
"//third_party/googletest:gtest", "//third_party/googletest:gtest",
"//third_party/mindspore/mindspore-src/source/mindspore/lite:mindspore_lib", "//third_party/mindspore/mindspore-src/source/mindspore/lite:mindspore_ndk",
] ]
subsystem_name = "ai" subsystem_name = "ai"
......
...@@ -43,6 +43,19 @@ ...@@ -43,6 +43,19 @@
"resource/ai/mindspore/ml_headpose_pb2tflite/ml_headpose_pb2tflite_2.input -> /data/test", "resource/ai/mindspore/ml_headpose_pb2tflite/ml_headpose_pb2tflite_2.input -> /data/test",
"resource/ai/mindspore/ml_headpose_pb2tflite/ml_headpose_pb2tflite0.output -> /data/test" "resource/ai/mindspore/ml_headpose_pb2tflite/ml_headpose_pb2tflite0.output -> /data/test"
] ]
},
{
"type": "ShellKit",
"run-command": [
"mount -o rw,remount /",
"[ -d '/system/lib' ] && cp /system/lib/ndk/libmindspore_lite_ndk.so /system/lib/platformsdk/",
"[ -d '/system/lib64' ] && cp /system/lib64/ndk/libmindspore_lite_ndk.so /system/lib64/platformsdk/"
],
"teardown-command": [
"[ -d '/system/lib' ] && cp /system/lib64/platformsdk/libmindspore_lite_ndk.so",
"[ -d '/system/lib64' ] && cp /system/lib64/platformsdk/libmindspore_lite_ndk.so",
"mount -o ro,remount /"
]
} }
] ]
} }
...@@ -1561,7 +1561,7 @@ HWTEST(MSLiteTest, OHOS_Input_0003, Function | MediumTest | Level1) { ...@@ -1561,7 +1561,7 @@ HWTEST(MSLiteTest, OHOS_Input_0003, Function | MediumTest | Level1) {
printf("==========ReadFile==========\n"); printf("==========ReadFile==========\n");
size_t size1; size_t size1;
size_t *ptr_size1 = &size1; size_t *ptr_size1 = &size1;
const char *imagePath = "/data/test/aiy_vision_classifier_plants_V1_3_0.input"; const char *imagePath = "/data/test/aiy_vision_classifier_plants_V1_3.input";
char *imageBuf = ReadFile(imagePath, ptr_size1); char *imageBuf = ReadFile(imagePath, ptr_size1);
ASSERT_NE(imageBuf, nullptr); ASSERT_NE(imageBuf, nullptr);
printf("==========Init Context==========\n"); printf("==========Init Context==========\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册