Reputation: 1511
I am training a NN using keras in a deep learning AMI (ubuntu 12) in AWS.
How do I ensure that my script in Jupyter Notebook is using GPU?
Upvotes: 0
Views: 541
Reputation: 34
Before running the session in tensorflow you could add this line of code to check:
sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))
For further detail of using GPU with tensorflow, you could check it out on tensorflow official website: https://www.tensorflow.org/guide/using_gpu
Upvotes: 1