Toybrick

设置预编译后报错

ooo

注册会员

积分
158
楼主
发表于 2021-12-10 13:46:54    查看: 4903|回复: 3 | [复制链接]    打印 | 只看该作者
在PC(双系统、64位)的ubuntu16.04LTS下转换模型时(未开启预编译),转换和仿真正常。但是开启了预编译后,在PC上模型可以转换,但是不能仿真,错误如下

--> Config model
done
--> Loading model
W Use existed rule db file to convert tensorflow model.
W:tensorflow:From /usr/local/lib/python3.5/dist-packages/rknn/api/rknn.py:75: extract_sub_graph (from tensorflow.python.framework.graph_util_impl) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.compat.v1.graph_util.extract_sub_graph
W Network may not support batch > 1 !
W Network may not support batch > 1 !
W Network may not support batch > 1 !
W Network may not support batch > 1 !
W Network may not support batch > 1 !
W Network may not support batch > 1 !
W Network may not support batch > 1 !
W Network may not support batch > 1 !
W Network may not support batch > 1 !
W Network may not support batch > 1 !
W Network may not support batch > 1 !
W Network may not support batch > 1 !
done
--> Building model
W The RKNN Model generated can not run on simulator when pre_compile is True.
W The target_platform is not set in config, using default target platform rk1808.
W:tensorflow:From /home/hao/.local/lib/python3.5/site-packages/tensorflow/python/ops/control_flow_ops.py:3632: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.
Instructions for updating:
Colocations handled automatically by placer.
W:tensorflow:From /home/hao/.local/lib/python3.5/site-packages/tensorflow/python/ops/control_flow_ops.py:1941: py_func (from tensorflow.python.ops.script_ops) is deprecated and will be removed in a future version.
Instructions for updating:
tf.py_func is deprecated in TF V2. Instead, use
    tf.py_function, which takes a python function which manipulates tf eager
    tensors instead of numpy arrays. It's easy to convert a tf eager tensor to
    an ndarray (just call tensor.numpy()) but having access to eager tensors
    means `tf.py_function`s can use accelerators such as GPUs as well as
    being differentiable using a gradient tape.
   
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C
done
--> Export RKNN model
done
--> Init runtime environment
E [compute_node:353]Create node[0] NBG fail
Create RKNN model fail, error=-6
E Catch exception when init runtime!
E Traceback (most recent call last):
E   File "rknn/api/rknn_base.py", line 844, in rknn.api.rknn_base.RKNNBase.init_runtime
E   File "rknn/api/rknn_runtime.py", line 340, in rknn.api.rknn_runtime.RKNNRuntime.build_graph
E Exception: RKNN init failed. error code: RKNN_ERR_MODEL_INVALID
Init runtime environment failed



回复

使用道具 举报

ooo

注册会员

积分
158
沙发
 楼主| 发表于 2021-12-10 19:24:27 | 只看该作者
官方大佬解答一下
回复

使用道具 举报

jefferyzhang

版主

积分
13572
板凳
发表于 2021-12-13 09:46:09 | 只看该作者
你仔细看了文档了么,文档上很明确的说过了预编译模型是不能仿真的,预编译后已经变成NPU可执行代码了,仿真器跑不了
回复

使用道具 举报

ooo

注册会员

积分
158
地板
 楼主| 发表于 2021-12-16 16:03:53 | 只看该作者
jefferyzhang 发表于 2021-12-13 09:46
你仔细看了文档了么,文档上很明确的说过了预编译模型是不能仿真的,预编译后已经变成NPU可执行代码了,仿 ...

哦哦,这样子,没细看到这点
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表