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

fix nnrt compile error

Change-Id: Ife5f066732f3843d95c433092d8fe72f4437f322
Signed-off-by: NZhu Guodong <zhuguodong0001@163.com>
上级 673c2008
......@@ -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.
先完成此消息的编辑!
想要评论请 注册