Skip to content

Instantly share code, notes, and snippets.

Avatar

Danijar Hafner danijar

View GitHub Profile
View Minecraft.md

Running Minecraft in Headless Linux System

Prerequisite

  1. xpra

    sudo apt-get install xpra

  2. jdk 1.8

@jovianlin
jovianlin / get_available_gpus.py
Created Oct 3, 2016
Get List of Devices in TensorFlow
View get_available_gpus.py
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()