Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apt-get install python3-venv
- python3 -m venv tz_env
- . tz_env/bin/activate
- pip3 install torch # gpu automatically
- pip3 install numpy
- export LIBTORCH_USE_PYTORCH=1
- export LIBTORCH_BYPASS_VERSION_CHECK=1
- PYTORCH_PATH=$(python3 -c "import torch; print(torch.__path__[0])")
- export LD_LIBRARY_PATH="$PYTORCH_PATH/lib:$LD_LIBRARY_PATH"
- cd ..
- cd app
- cargo build --release
- clear
- python client.py
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement