About tensorrt version

I use jetpack4.4 in my xavier.

the tensorrt version is 7.1.3

can I compile onnx parser replace the older one to append operation


Yes, you can.
But it’s recommended to check out the same branch (v7.1) for compatibility.

Here are detailed steps for your reference:

1. Install cmake-3.13.5

$ sudo apt-get install -y protobuf-compiler libprotobuf-dev openssl libssl-dev libcurl4-openssl-dev
$ wget https://github.com/Kitware/CMake/releases/download/v3.13.5/cmake-3.13.5.tar.gz
$ tar xvf cmake-3.13.5.tar.gz
$ cd cmake-3.13.5/
$ ./bootstrap --system-curl
$ make -j$(nproc)
$ echo 'export PATH='${PWD}'/bin/:$PATH' >> ~/.bashrc
$ source ~/.bashrc

2. Build TensorRT OSS

$ git clone -b release/7.1 https://github.com/NVIDIA/TensorRT.git
$ cd TensorRT
$ git submodule update --init --recursive
$ mkdir -p build && cd build
$ cmake .. -DGPU_ARCHS="72"  -DTRT_LIB_DIR=/usr/lib/aarch64-linux-gnu/ -DCMAKE_C_COMPILER=/usr/bin/gcc
$ make nvonnxparser -j$(nproc)
$ sudo mv /usr/lib/aarch64-linux-gnu/libnvonnxparser.so.7.1.3 libnvonnxparser.so.7.1.3_bk
$ sudo cp libnvonnxparser.so.7.0.0 /usr/lib/aarch64-linux-gnu/libnvonnxparser.so.7.0.0
$ sudo rm /usr/lib/aarch64-linux-gnu/libnvonnxparser.so.7
$ sudo ln -s /usr/lib/aarch64-linux-gnu/libnvonnxparser.so.7.0.0 /usr/lib/aarch64-linux-gnu/libnvonnxparser.so.7
$ sudo ldconfig