tensorflow


GPU is not used for calculations despite tensorflow-gpu installed


My computer has the following software installed: Anaconda (3), TensorFlow (GPU), and Keras.
There are two Anaconda virtual environments - one with TensorFlow for Python 2.7 and one for 3.5, both GPU version, installed according to the TF instructions. (I had a CPU version of TensorFlow installed previously in a separate environment, but I've deleted it.)
When I run the following:
source activate tensorflow-gpu-3.5
python code.py
and check nvidia-smi it shows only 3MiB GPU Memory Usage by Python, so it looks like GPU is not used for calculations.
(code.py is a simple deep Q-learning algorithm implemented with Keras)
Any ideas what can be going wrong?
A good way to debug these problems is to check which operations have been allocated to which devices.
You can check this by passing a configuration parameter to the session:
session = tf.Session(config=tf.ConfigProto(log_device_placement=True))
When you run your app, you will see some output indicating which devices are being used.
You can find more information here:
https://www.tensorflow.org/tutorials/using_gpu

Related Links

Input Queue in PTB Language Modeling example
CreateSession still waiting for response from worker tensorflow
Errors when building TensorFlow with CMake on Windows 10
How many classes can inception v3 model classify at most?
From tensorboard, how to explain tensor_content?
keras custom conv2d initialization
Getting high training accuracy but wrong predictions for training set
Tensorflow: Input pipeline with sparse data for the SVM estimator
Implementing high-pass filter in tensorflow
tf.train.batch output is not deterministic
Tensorflow: ValueError: Input size (depth of inputs) must be accessible via shape inference, but saw value None
Why is such a big difference between Total memory and Free memory on the GPU
Is it possible to replace placeholder with a constant in an existing graph?
Creating nested RNN with tensorflow
How does tf.sign works with back propagation?
Fail to install tensorflow from source in ubuntu

Categories

HOME
makefile
cluster-computing
batch-processing
udp
erlang
answer-set-programming
signalr
vb6
wildcard
nuxeo
ocaml
google-contacts
memory-leaks
hana
windows-store-apps
vlc
ext.net
apiconnect
internet-explorer-11
ipfs
rfid
camera-calibration
activesync
future
squarespace
opera-mini
tree-traversal
jpeg2000
attask
epicor
http-method
pdfsharp
compare-and-swap
hanami
vcard
pygooglechart
red-black-tree
protobuf-net
division
body-parser
threshold
service-locator
passenger
jquery-cycle2
jboss-esb
parse-android-sdk
parent
tic-tac-toe
android-preferences
common.logging
dart-pub
exiftool
sendgrid-templates
distributed-transactions
resuming-training
ajp
nsjsonserialization
openh264
castle-dynamicproxy
python-hypothesis
jcreator
visual-studio-templates
verbose
coremidi
pdflib
ebtables
xib
icefaces
c#-interactive
glkit
rstudio-server
aescryptoserviceprovider
wcf-ria-services
zurb-foundation-apps
spark-cassandra-connector
coordinate-transformation
faraday
date-format
anti-cheat
site-prism
response-headers
manjaro
xjc
mdm-zinc
ember-cli-addons
virus
low-level
belongs-to
omnifocus
mser
grunt-contrib-concat
cg
arangodb-php
sanitization
document-database
zend-lucene
sequelpro
couchdb-lucene
cadisplaylink
caliper
wcf-web-api
text-services-framework
handwriting
collect
server-error
dashcode
external-assemblies
boost-date-time
asp.net-mvc-controller
act
longjmp
divx

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App