Toybrick

标题: 自定义算子生成.rknnop编译失败 [打印本页]

作者: liufeng    时间: 2020-8-3 16:10
标题: 自定义算子生成.rknnop编译失败
toybrick@debian10:~/rknn-toolkit-v1.3.2/examples/common_function_demos/custom_op/ts$ python3 -m rknn.bin.custom_op --action build --op_path ./resize_area
W:tensorflow:From /home/toybrick/.local/lib/python3.7/site-packages/onnx_tf/handlers/backend/ceil.py:10: The name tf.ceil is deprecated. Please use tf.math.ceil instead.

W:tensorflow:From /home/toybrick/.local/lib/python3.7/site-packages/onnx_tf/handlers/backend/depth_to_space.py:12: The name tf.depth_to_space is deprecated. Please use tf.compat.v1.depth_to_space instead.

W:tensorflow:
The TensorFlow contrib module will not be included in TensorFlow 2.0.
For more information, please see:
  * https://github.com/tensorflow/co ... 7-contrib-sunset.md
  * https://github.com/tensorflow/addons
  * https://github.com/tensorflow/io (for I/O related ops)
If you depend on functionality not listed there, please file an issue.

W:tensorflow:From /home/toybrick/.local/lib/python3.7/site-packages/onnx_tf/handlers/backend/log.py:10: The name tf.log is deprecated. Please use tf.math.log instead.

W:tensorflow:From /home/toybrick/.local/lib/python3.7/site-packages/onnx_tf/handlers/backend/random_normal.py:9: The name tf.random_normal is deprecated. Please use tf.random.normal instead.

W:tensorflow:From /home/toybrick/.local/lib/python3.7/site-packages/onnx_tf/handlers/backend/random_uniform.py:9: The name tf.random_uniform is deprecated. Please use tf.random.uniform instead.

W:tensorflow:From /home/toybrick/.local/lib/python3.7/site-packages/onnx_tf/handlers/backend/upsample.py:13: The name tf.image.resize_images is deprecated. Please use tf.image.resize instead.

/home/toybrick/.local/lib/python3.7/site-packages/onnx_tf/common/__init__.py:87: UserWarning: FrontendHandler.get_outputs_names is deprecated. It will be removed in future release.. Use node.outputs instead.
  warnings.warn(message)
checking aarch64-linux-gnu
found /home/toybrick/.rknn/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu
building library
if [ ! -d ./.out/x64 ]; then mkdir -p ./.out/x64; else echo "./.out/x64 exist"; fi
./.out/x64 exist
cc -fPIC -shared -I/home/toybrick/.local/lib/python3.7/site-packages/rknn/simulator/include -L/home/toybrick/.local/lib/python3.7/site-packages/rknn/simulator/lib/x64_linux -Wl,--no-as-needed -lOpenVX -o ./.out/x64/libresizearea.so rknn_kernel_resizearea.c
/usr/bin/ld: skipping incompatible /home/toybrick/.local/lib/python3.7/site-packages/rknn/simulator/lib/x64_linux/libOpenVX.so when searching for -lOpenVX
/usr/bin/ld: cannot find -lOpenVX
collect2: error: ld returned 1 exit status
make: *** [makefile.linux.x64:10: all] Error 1
build x64 library fail


作者: liufeng    时间: 2020-8-3 16:29
参照自定义算子教程编译生成不成功。找不到系统自带的OpenVX,确认过/home/toybrick/.local/lib/python3.7/site-packages/rknn/simulator/lib/aarch64_linux/libOpenVX.so为ELF 64-bit LSB shared object, ARM aarch64.请专家来解答,是你们的bug吗?
作者: jefferyzhang    时间: 2020-8-3 20:02
本帖最后由 jefferyzhang 于 2020-8-3 20:04 编辑

自定义算子需要在PC端rknntoolkit编译,3399pro上的rknntoolkit是精简版,不支持高级功能的。




欢迎光临 Toybrick (https://t.rock-chips.com/) Powered by Discuz! X3.3