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

How to properly freeze a tensorflow graph containing a LookupTable
Does Tensorflow simplify a computational graph?
Difference between tesorflow sparse_softmax_cross_entropy_with_logits and softmax_cross_entropy_with_logits?
Time series forecasting with exogenous variables using LSTM/RNN
TensorFlow New Op: AttributeError: 'module' object has no attribute 'custom_op'
How to Recognise multiple object in the same image
TensorBoard doesn't show all data points
Benchmark Keras model using TensforFlow Benchmark
Tensorflow Serving - Stateful LSTM
How to take the gradients of the center loss function described in tensorflow openface ?
TensorFlow: Why do parameters not update when GradientDescentOptimizer train step is run?
Keras using GPU vs CPU
Can I selectively augment subsets of data based on their labels?
tf.parse_example used in mnist export example
Running a trained TensorFlow model on a specific device
Keras model/layer regularization property deprecated

Categories

HOME
jdbc
cntk
project-management
oauth
ocaml
amazon-product-api
phpstorm
rfc
azureservicebus
histogrammar
internet-explorer-11
contact-form-7
android-viewpager
cakephp-2.9
cortex-a
tee
lstm
scenebuilder
arm-template
arraylist
google-api-java-client
dspic
shopping-cart
rhandsontable
system.data.sqlite
pcre
hibernate-cache
consumer
nsurlconnection
npm-shrinkwrap
elfinder
tic-tac-toe
flex4.5
sendgrid-templates
microdata
pdftk
median
upsert
estimation
lumen-5.3
vcf
timesten
sapui
windows-95
jexl
instruction-set
gce
cdk
paas
objloader
keycode
nsfetchedresultscontrolle
push-diffusion
rstudio-server
clob
spatial-query
project-online
supportmapfragment
loopj
multinomial
direct3d12
data-import
application-loader
zuora
sourcegear-vault
response-headers
paypal-nvp
pyopengl
type-mismatch
gulp-livereload
uptodate
sqoop2
tcpreplay
google-admin-audit-api
outline
csplit
factors
xenocode
gfs
va-list
ruboto
sharpmap
digital-design
magickwand
cgpath
cbcentralmanager
ubuntu-11.10
enumerators
tfs-power-tools
continuous-testing
ninject-extensions
viewdidload
msgbox
shared-objects
zookeeper
goliath
junit3
adobe-contribute
nvelocity
rijndael
getresource
gwt-2.2-celltable
hmacsha1
winsnmp

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