Description
Describe the issue
While building onnxruntime with Armnn support, getting build errors due to a mismatch in the signature of the function AddFullyConnectedLayer.
There is a call AddFullyConnectedLayer in onnxruntime/core/providers/armnn/math/gemm.h, which definition is present in Armnn SDK, armnn/INetwork.cpp, The argument expected is 2 in Armnn but in onnxruntime, it is passed with 4 arguments.
Below is the error:
work/onnx_armnn/onnxruntime/onnxruntime/core/providers/armnn/math/gemm.cc:5:
/usr/local/include/armnn/INetwork.hpp:383:24: note: candidate: ‘armnn::IConnectableLayer* armnn::INetwork::AddFullyConnectedLayer(const armnn::FullyConnectedDescriptor&, const char*)’
383 | IConnectableLayer* AddFullyConnectedLayer(const FullyConnectedDescriptor& fullyConnectedDescriptor,
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/armnn/INetwork.hpp:383:24: note: candidate expects 2 arguments, 4 provided
Urgency
Yes, It is blocked to build onnxruntime with Armnn support
Target platform
Jetson Orin
Build script
./build.sh --update --config Release --build --build_wheel --use_cuda --cuda_home /usr/local/cuda --cudnn_home /usr/lib/aarch64-linux-gnu --use_armnn
Error / output
work/onnx_armnn/onnxruntime/onnxruntime/core/providers/armnn/math/gemm.cc:5:
/usr/local/include/armnn/INetwork.hpp:383:24: note: candidate: ‘armnn::IConnectableLayer* armnn::INetwork::AddFullyConnectedLayer(const armnn::FullyConnectedDescriptor&, const char*)’
383 | IConnectableLayer* AddFullyConnectedLayer(const FullyConnectedDescriptor& fullyConnectedDescriptor,
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/armnn/INetwork.hpp:383:24: note: candidate expects 2 arguments, 4 provided
Visual Studio Version
No response
GCC / Compiler Version
No response