How to build onnxruntime on Xavier NX

I built onnxruntime with python with using a command as below l4t-ml conatiner.
But I cannot use onnxruntime.InferenceSession.
(onnxruntime has no attribute InferenceSession)
I missed the build log, the log didn’t show any errors.

./build.sh --config Release --update --build --enable_pybind --build_wheel --use_cuda --use_tensorrt --cudnn_home /usr/lib/aarch64-linux-gnu/ --tensorrt_home /usr/lib/aarch64-linux-gnu/

Hi,

You can directly install our onnxruntime prebuilt for Jetson below:

https://elinux.org/Jetson_Zoo#ONNX_Runtime

Or the detailed building command can be found in the below page:

Thanks.

1 Like