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

!8629 修复mindspore xts arm64编译报错

Merge pull request !8629 from zhuguodong/master
......@@ -71,9 +71,10 @@ void AddContextDeviceNNRT(OH_AI_ContextHandle context) {
return;
}
printf("found %u nnrt devices.\n", num);
std::cout << "found " << num << " nnrt devices" << std::endl;
for (size_t i = 0; i < num; i++) {
printf("nnrt device %u: {device_id: %u, type:%d, name:%s}\n", i, desc[i].device_id, desc[i].device_type, desc[i].device_name);
std::cout << "nnrt device " << i << ": {device_id: " << desc[i].device_id
<< ", type:" << desc[i].device_type << ", name:" << desc[i].device_name << std::endl;
}
OH_AI_DeviceInfoSetDeviceId(nnrt_device_info, desc[0].device_id);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册