Skip to content

Instantly share code, notes, and snippets.

@koyo922
koyo922 / select_gpu.py
Last active October 18, 2017 01:50
tensorflow utils
import os
os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID" # see issue #152
os.environ["CUDA_VISIBLE_DEVICES"]="0,1"
from tensorflow.python.client import device_lib
print(device_lib.list_local_devices())
@koyo922
koyo922 / 0_reuse_code.js
Created February 1, 2016 02:38
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console