I hereby claim:
- I am dte on github.
- I am dte (https://keybase.io/dte) on keybase.
- I have a public key ASBUHk4r10yK56bUqf0cZ9iYkVdIqehPtxMHsTcvtYp4awo
To claim this, I am signing this object:
#!/bin/bash | |
has_apt="$(which apt)" | |
if [ "$has_apt" = "" ]; then | |
echo "Cannot install on CentOS" | |
exit 1 | |
fi | |
sudo apt update |
import requests | |
import re | |
import json | |
import os | |
import sys | |
UA = 'Midjourney-history-sync/1.0' | |
USER_ID = '###' |
I hereby claim:
To claim this, I am signing this object:
from tensorflow.python.client import device_lib | |
def get_available_gpus(): | |
local_device_protos = device_lib.list_local_devices() | |
return [x.name for x in local_device_protos if x.device_type == 'GPU'] | |
get_available_gpus() |
#!/bin/bash | |
# 1. Install CUDA | |
echo "Installing CUDA..." | |
# Only install if CUDA is not already installed. | |
if ! dpkg-query -W cuda; then | |
# The 16.04 installer works with 16.10. | |
curl -O http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_8.0.61-1_amd64.deb | |
dpkg -i ./cuda-repo-ubuntu1604_8.0.61-1_amd64.deb | |
apt-get update | |
apt-get install cuda -y |