Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

disable gpu in jupyter notebook in tensorflow

import os
os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
import tensorflow as tf
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #disable #gpu #jupyter #notebook #tensorflow
ADD COMMENT
Topic
Name
2+9 =