标题: 自定义算子生成失败 [打印本页] 作者: liufeng 时间: 2020-8-3 16:12 标题: 自定义算子生成失败 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: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/openvx_sample/install/Linux/x64/Release/bin -lopenvx -Wl,--no-as-needed -o ./.out/x64/libresizearea.so rknn_kernel_resizearea.c
build x64 library success
if [ ! -d ./.out/aarch64 ]; then mkdir -p ./.out/aarch64; else echo "./.out/aarch64 exist"; fi
./.out/aarch64 exist
aarch64-linux-gnu-gcc -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/aarch64_linux -Wl,--no-as-needed -lOpenVX -o ./.out/aarch64/libresizearea.so rknn_kernel_resizearea.c
build aarch64 library success
building vx kernel source
/bin/sh: 1: /home/toybrick/.local/lib/python3.7/site-packages/rknn/simulator/bin/vcCompiler: Exec format error
build vx kernel source fail