|
5#
楼主 |
发表于 2021-11-9 15:02:45
|
只看该作者
现在是遇到了一个数值错误的问题,平时都是对的,但偶尔出现一次,就会数值错误。具体的使用方法就是每次通过 memcpy来写入 input_mems[0]->virt_addr ,然后执行rknn_run,之后通过memcpy 取出output_mems[0]->virt_addr 中的特征。
99.9%的情况下,得到的数值没有问题,但偶有一次,就得到错误的数值,且数值有一定规律(以8个为一组,一组内的数值近似)。
正确的特征(前64维)如下:
- 0.703769, 0.695992, 0.303281, 0.295505, 0.00388822, 0.244958, 0.532687, 0.684327, 0.37327, 0.295505, 0.00388822, 0.186635, 0.454922, 0.664886, 0.478252, 0.295505, 0.00388822, 0.17497, 0.412152, 0.664886, 0.552128, 0.295505, 0.00388822, 0.151641, 0.509357, 0.695992, 0.637669, 0.303281, 0.00388822, 0.151641, 0.606563, 0.703769, 0.703769, 0.303281, 0.00388822, 0.139976, 0.532687, 0.703769, 0.684327, 0.303281, 0.00388822, 0.124423, 0.544351, 0.695992, 0.664886, 0.303281, 0.00388822, 0.116647, 0.552128, 0.684327, 0.664886, 0.303281, 0.00388822, 0.101094, 0.563793, 0.676551, 0.664886, 0.295505, 0.00388822, 0.0933174, 0.563793, 0.676551, 0.645445, 0.295505
错误的特征(前64维)如下:
- 0.800974, 0.793198, 0.828192, 0.839856, 0.83208, 0.820415, 0.83208, 0.820415, 0.812639, 0.808751, 0.793198, 0.808751, 0.800974, 0.820415, 0.828192, 0.828192, 0.843745, 0.820415, 0.812639, 0.800974, 0.793198, 0.793198, 0.800974, 0.800974, 0.820415, 0.820415, 0.808751, 0.769868, 0.754315, 0.769868, 0.808751, 0.812639, 0.777645, 0.808751, 0.820415, 0.808751, 0.785421, 0.785421, 0.808751, 0.87485, 0.762092, 0.703769, 0.730986, 0.762092, 0.72321, 0.676551, 0.703769, 0.703769, 0.322723, 0.322723, 0.322723, 0.322723, 0.322723, 0.322723, 0.322723, 0.322723, 0.828192, 0.812639, 0.785421, 0.730986, 0.703769, 0.695992, 0.703769, 0.703769
请帮忙确认一下我们的使用方法是否确实有误,如果有错误,请指出来。或提出一些可能导致此问题的原因。(因redmine提了之后超过一周没人回复,只好在此提问了,谢谢!)
|
|