This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo -e '\n# set environment variable for TensorRT' >> ~/.bashrc | |
echo 'export TENSORRT_DIR=/usr/include/aarch64-linux-gnu' >> ~/.bashrc | |
echo -e '\n# set environment variable for CUDA' >> ~/.bashrc | |
echo 'export PATH=$PATH:/usr/local/cuda/bin' >> ~/.bashrc | |
echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64' >> ~/.bashrc | |
source ~/.bashrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Remove unnecessary packages, clean apt cache and remove thunderbird, libreoffice | |
apt update | |
apt autoremove -y | |
apt clean | |
apt remove thunderbird libreoffice-* -y | |
# Remove samples | |
rm -rf /usr/local/cuda/samples \ | |
/usr/src/cudnn_samples_* \ | |
/usr/src/tensorrt/data \ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Decoder(bytes, port) { | |
var decoded = {}; | |
function transformersint(bytes){ | |
value = bytes[0] * 256 + bytes[1]; | |
if (value == 32768){ | |
return; | |
} | |
if (value > 32768) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Get the Python version | |
python_version=$(python3 -c 'import sys; print("{:.2f}".format(float(".".join(map(str, sys.version_info[:2])))))') | |
echo -e '\n# set environment variable for Torch' >> ~/.bashrc | |
echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/.local/lib/python'$python_version'/site-packages/torch.libs:$HOME/.local/lib/python'$python_version'/site-packages/torch/lib' >> ~/.bashrc | |
sleep 2 |