-
Notifications
You must be signed in to change notification settings - Fork 74.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tensorflow Failed to create Session #9549
Comments
maybe out of GPU memory? Try running with |
Please provide details about what platform you are using (operating system, architecture). Also include your TensorFlow version. Also, did you compile from source or install a binary? Make sure you also include the exact command if possible to produce the output included in your test case. If you are unclear what to include see the issue template displayed in the Github new issue template. We ask for this in the issue submission template, because it is really difficult to help without that information. Thanks! |
System details : ubuntu 14.04 x86_64 I was able to install cpu version and execute my model but GPU version fails. I tried using latest Tensorflow Version 1.0 but again it was not able to create session. |
Try upgrading your cuda drivers and sdk? |
Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks! |
Restarting the system helped in my case. |
Getting unable to create tensorflow session. Error occurs even after restarting the system. Also I checked that the GPU consumption is almost 0. i am using windows operating system. Let me know if you need more information |
Updating NVIDIA drivers fixed this for me |
Can you provide the use information of your GPUS? Maybe somebody else is using the GPU, which leads to this problem. This is the case for me . |
I have met this problem ,and i didn't solve it. i use anonaconda3 commond conda install tensorflow-gpu but when i run a python file ,it told me tensorflow.python.framework.errors_impl.InternalError: Failed to create session.I don't think out of my memory.Because I have eight NVIDIA K80 |
For me, I had to downgrade to tensorflow 1.9.0. It might be a cuda toolkit incompatibility issue, I'm not sure. It looked like tensorflow v10 used cuda toolkit 9.2, while I only had 9.0 installed. |
That helped me a lot when I updated my tensorflow to 1.10.0, thank you very much @baker-travis |
In the case I just solved, it was updating the GPU driver to the latest and installing the cuda toolkit. First, the ppa was added and GPU driver installed:
After adding the ppa, it showed options for driver versions, and 390 was the latest 'stable' version that was shown. Then install the cuda toolkit:
Then reboot:
It updated the drivers to a newer version than the 390 originally installed in the first step (it was 410; this was a p2.xlarge instance on AWS). |
for me i key "conda install cudnn==7.1.2“ 。 |
Adding these lines worked for me. #Provide the GPU number to be used |
If your GPU utility shows 0% and still tensorflow failed to create the session, there are some forcefully closed tensorflow session. These will not usally visible with nvidia-smi. But |
Hi
I tried basic program in python shell. It fails to create session. Please assist.
Thanks
The text was updated successfully, but these errors were encountered: