- from rknn.api import RKNN
- import numpy as np
- import cv2
- if __name__ == '__main__':
- rknn = RKNN(verbose=True)
- rknn.register_op('./selu/Selu.rknnop')
- rknn.load_tensorflow('selu.pb',
- inputs=['x'],
- outputs=['output'],
- input_size_list=[[32, 32, 3]])
- rknn.build(do_quantization=False)
- rknn.init_runtime()
- rknn.release()
复制代码
- I [register_client_ops:5359]register_client_ops num=1
- I [register_client_ops:5372]op name=Selu�r reg_name=SELU�R reg_id=65542
- I [load_custom_op_lib:485]vx_kernel_Selu�r_list=0
- I [register_client_ops:5377]register_client_ops finish
- I [setup_nodes:4413]name=output_2
- E [str2op:130]Can not find op:SELU
- I [match_custom_op:141]try match SELU�R 65542
- E [match_custom_op:148]Can not find custom op:SELU
- E [setup_nodes:4434]match custom op fail
- I [remove_client_ops:5388]remove_client_ops num=1
- I [remove_client_ops:5394]remove op Selu�r reg_name=SELU�R reg_id=65542
- I [remove_client_ops:5399]remove_client_ops finish
- Create RKNN model fail, error=0
- Segmentation fault
复制代码
算子的名字不知道为什么会变成了乱码,可能是这里导致的错误。欢迎光临 Toybrick (https://t.rock-chips.com/) | Powered by Discuz! X3.3 |