标签:arch com dnn load gnu pytho exp 避免 pip
下载对应的tar版本:https://developer.nvidia.com/nvidia-tensorrt-6x-download
version="6.0.1.8"
os="Ubuntu-16.04"
arch=$(uname -m)
cuda="cuda-10.2"
cudnn="cudnn7.6"
tar xzvf TensorRT-${version}.${os}.${arch}-gnu.${cuda}.${cudnn}.tar.gz
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/qian/TensorRT-6.0.1.8/lib
cd TensorRT-${version}/python
# If using Python 2.7:
sudo pip2 install tensorrt-*-cp27-none-linux_x86_64.whl
# If using Python 3.x:
sudo pip3 install tensorrt-*-cp3x-none-linux_x86_64.whl
cd TensorRT-${version}/uff
# If using Python 2.7:
sudo pip2 install uff-0.6.9-py2.py3-none-any.whl
# If using Python 3.x:
sudo pip3 install uff-0.6.9-py2.py3-none-any.whl
# In either case, check the installation with:
which convert-to-uff
cd TensorRT-${version}/graphsurgeon
# If using Python 2.7:
sudo pip2 install graphsurgeon-0.4.5-py2.py3-none-any.whl
# If using Python 3.x:
sudo pip3 install graphsurgeon-0.4.5-py2.py3-none-any.whl
# TensorRT路径下
sudo cp -r ./lib/* /usr/lib
sudo cp -r ./include/* /usr/include
pip install ‘pycuda>=2019.1.1‘
cd ~/TensorRT-6.0.1.8/samples/
sudo make
cd ../bin
./sample_int8 mnist
标签:arch com dnn load gnu pytho exp 避免 pip
原文地址:https://www.cnblogs.com/long5683/p/13360651.html