|
5#
楼主 |
发表于 2020-4-23 17:22:38
|
只看该作者
请教下如何查看PC端的RKNN_API 版本?我是通过rknn-toolkit-V1.3.0/packages/rknn_toolkit-1.3.0-cp35-cp35m-linux_x86_64.whl 这个轮子安装的。我参试用py脚本去获取版本信息出现如下error
Type "help", "copyright", "credits" or "license" for more information.
>>> from rknn.api import RKNN
>>> rknn = RKNN()
>>> ret = rknn.load_rknn(path='./mobilenet_v2.rknn')
>>> rknn.init_runtime()
0
>>> rknn.get_sdk_version()
E Catch exception when get sdk version
E Traceback (most recent call last):
E File "/usr/local/lib/python3.5/dist-packages/rknn/api/rknn.py", line 487, in get_sdk_version
E sdk_version = self.rknn_base.get_sdk_version()
E File "rknn/api/rknn_base.py", line 1060, in rknn.api.rknn_base.RKNNBase.get_sdk_version
E File "rknn/api/rknn_runtime.py", line 664, in rknn.api.rknn_runtime.RKNNRuntime.get_sdk_version
E Exception: Target hardware platform need be pointed before get sdk version.
>>> |
|