Loading

摘要: 需求 使用华为HiAi框架进行模型推理 成功转换模型并构造输入输出tensor 目前需要对output feature map进行解析需要获取tensor指定坐标的值 类似使用array[0,0,0,0]访问返回flat[0] 实现 输出tensor提供了header地址float*和shape数据 阅读全文
posted @ 2021-05-19 19:47 azureology 阅读(93) 评论(0) 推荐(0)
摘要: 需求 开发嵌入式设备需要交叉编译,无法在本机器断点调试,需要将bin文件scp到开发板进行调试。 希望编译成功后自动执行scp 实现 使用shell脚本的&&完成逻辑判断,满足编译exit code = 0进行scp #!/bin/bash # clean last output rm -rf bu 阅读全文
posted @ 2021-05-19 18:00 azureology 阅读(134) 评论(0) 推荐(0)
摘要: 需求 有个tensor保存在numpy数组中,想用C++读取。 操作 首先使用np.save()将数组保存为npy文件,注意dtype需要指定。 读写npy主要用到这个库 https://github.com/llohse/libnpy 调用只需包含一个hpp文件 可获取array对应size并将数 阅读全文
posted @ 2021-05-19 12:03 azureology 阅读(2984) 评论(0) 推荐(0)