未验证 提交 a9638e71 编写于 作者: O openharmony_ci 提交者: Gitee

!7519 【Musl升级】解决Musl升级过程中dayu200_xts-xts_acts_ai编译错误

Merge pull request !7519 from dhy308/dev_ai
......@@ -136,7 +136,7 @@ void ModelPredict(OH_AI_ModelHandle model, OH_AI_ContextHandle context, string m
printf("==========GetInputs==========\n");
OH_AI_TensorHandleArray inputs = OH_AI_ModelGetInputs(model);
ASSERT_NE(inputs.handle_list, nullptr);
if (shape_infos.shape_num != NULL) {
if (shape_infos.shape_num != 0) {
printf("==========Resizes==========\n");
OH_AI_Status resize_ret = OH_AI_ModelResize(model, inputs, &shape_infos, inputs.handle_num);
printf("==========Resizes return code:%d\n", resize_ret);
......@@ -1530,4 +1530,4 @@ HWTEST(MSLiteTest, OHOS_Compatible_0001, Function | MediumTest | Level1) {
ASSERT_EQ(ret, OH_AI_STATUS_SUCCESS);
CompareResult(outputs, "ml_face_isface");
OH_AI_ModelDestroy(&model);
}
\ No newline at end of file
}
......@@ -227,7 +227,7 @@ HWTEST_F(ActsPMSUpdatePermissionTest, testSecPMUpdatePMFlags_6500, Function | Me
EXPECT_EQ(ret, PERM_ERRORCODE_INVALID_PARAMS) << "update perms flag ret =" << ret << endl;
// pkg flag empty
ret = g_interface->UpdatePermissionFlags(TEST_APP_ID, g_systemPers[0].name, NULL);
ret = g_interface->UpdatePermissionFlags(TEST_APP_ID, g_systemPers[0].name, 0);
EXPECT_EQ(ret, PERM_ERRORCODE_SUCCESS) << "update perms flag ret =" << ret << endl;
ClrPers(permissions);
......@@ -334,4 +334,4 @@ HWTEST_F(ActsPMSUpdatePermissionTest, testSecPMUpdatePMFlags_6800, Function | Me
UnLoadPermissions(TEST_TASKID);
DeletePermissions(TEST_APP_ID);
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册