Closed bhahn2004 closed 3 years ago
I have built ArmNN with the following versions of dependencies Google Protobuf: 3.12.0 Boost Library: 1.64.0 Arm Compute Library: 21.02 TensorFlow: 2.3.1 Flatbuffer: 1.12.0 ONNX: 1.6.0
For PyArmNN, I used SWIG v4.0.2.
Hi @bhahn2004,
Have you set the environment variables as mentioned in armnn/python/pyarmnn/README.md?
$ export SWIG_EXECUTABLE=<path_to_swig>
$ export ARMNN_INCLUDE=<path_to_armnn_include>
# ARMNN_INCLUDE should point to armnn/include,armnn/profiling/common/include
# This is due to paths being split with comma: armnn_include_path = armnn_include_path_raw.split(",")
$ export ARMNN_LIB=<path_to_armnn_libraries>
Regards, Francis.
@FrancisMurtagh-arm Thanks.
Is it possible that both armnn/include
and armnn/profiling/common/include
should be included in the python/pyarmnn/README.md
with the fact that it should be delimited by ,
.
Many documentations scattered across the web (results from Google) would just include armnn/include
most of the time and make people doubt whether including some things deep down in the directory is a correct thing.
I think it would be nice if this is reflected.
Anyways thank you for the solution!
Hi @bhahn2004,
I added a patch for your suggestions, but changed delimiter to : as its standard in Linux: https://review.mlplatform.org/c/ml/armnn/+/6097
Thanks, Francis.
I had come across to a similar issue in https://github.com/ARM-software/armnn/issues/542. Therefore, I am trying to build PyArmNN on commit hash 0176fd81
I was able to successfully build ArmNN. However, while building PyArmNN whl file, I met the following issue:
After I run
python swig_generate.py -v
I got:This seems to be due to commit 7dcc6971
Can somebody help me overcome this error?