Tensorflow backend lower GPU Util compared to Theano
See original GitHub issueUsed a both a custom MLP model and the examples/mnist_mlp.py to test:
TF:
epoch time ~5s
real 1m20.077s
user 2m3.212s
sys 0m16.884s
Theano:
epoch time ~1s
real 0m38.972s
user 0m35.212s
sys 0m4.168s
On a Tesla K20c. The nvidia-smi gpu util is around 80% when using Theano. TF’s gpu util is around 10-20%.
Using gpu device 0: Tesla K20c (CNMeM is enabled with initial size: 90.0% of memory, cuDNN 5005)
When I disable cnmem in .theanorc, theano performance becomes similar to TF: 20% gpu util, epoch time of ~4s:
real 1m51.123s
user 1m0.212s
sys 0m50.972s
Is there a way of customizing TF’s memory allocation?
Issue Analytics
- State:
- Created 7 years ago
- Comments:8
Top Results From Across the Web
GPU Performing Slowly with keras on theano backend
I get very low GPU utilization and almost no GPU memory utilization. I'm wondering if it's just having trouble fitting batches onto the...
Read more >Theano vs TensorFlow : A Quick Comparision of Frameworks
TensorFlow's Execution speed is Slower as compared to Theano, But in Multi-GPU Tasks it takes the Lead. Technology Benefits: Technology-Benefits ...
Read more >Difference between TensorFlow and Theano - GeeksforGeeks
In this article, we will compare and find the difference between TensorFlow and Theano. Both these modules are used for deep learning and ......
Read more >Optimize TensorFlow GPU performance with the TensorFlow ...
Debug the performance of one GPU. There are several factors that can contribute to low GPU utilization. Below are some scenarios commonly ...
Read more >Just another Tensorflow beginner guide (Part3 - Keras + GPU)
If you compare a Keras version of a simple one-layer ... when using the Theano backend (not sure if it is the same...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@CCXD Just checked and I believe that’s the problem. Importing tensorflow seems like it no longer uses cuda after installing keras. It might be caused by also installing Anaconda.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs, but feel free to re-open a closed issue if needed.