Tensorflow Failed to create Session
up vote
-2
down vote
favorite
I installed tensorflow-gpu on my laptop but when I try to create a new session I get this error:
`> import tensorflow as tf
hello = tf.constant('hi,tensorflow')
sess = tf.Session()
2018-11-22 01:32:54.083160: I C:UsersUserSourceRepostensorflowtensorflowcorecommon_runtimegpugpu_device.cc:1105] Found device 0 with properties:
name: GeForce MX150 major: 6 minor: 1 memoryClockRate(GHz): 1.5315
pciBusID: 0000:01:00.0
totalMemory: 4.00GiB freeMemory: 3.32GiB
2018-11-22 01:32:54.090965: I C:UsersUserSourceRepostensorflowtensorflowcorecommon_runtimegpugpu_device.cc:1195] Creating TensorFlow device (/device:GPU:0) -> (device: 0, name: GeForce MX150, pci bus id: 0000:01:00.0, compute capability: 6.1)
2018-11-22 01:32:54.101480: E C:UsersUserSourceRepostensorflowtensorflowcorecommon_runtimedirect_session.cc:168] Internal: cudaGetDevice() failed. Status: CUDA driver version is insufficient for CUDA runtime version
Traceback (most recent call last):
File "", line 1, in
File "C:UsersMHDAnaconda3envstf_15libsite-packagestensorflowpythonclientsession.py", line 1509, in init
super(Session, self).init(target, graph, config=config)
File "C:UsersMHDAnaconda3envstf_15libsite-packagestensorflowpythonclientsession.py", line 628, in init
self._session = tf_session.TF_NewDeprecatedSession(opts, status)
File "C:UsersMHDAnaconda3envstf_15libsite-packagestensorflowpythonframeworkerrors_impl.py", line 473, in exit
c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.InternalError: Failed to create session.`
- tensorflow-gpu 1.5.0
- CUDA Toolkit 9.1
- cudNN 7.0.5
- python 3.6.7
- GPU Nvidia Geforce MX150 (4 GB)
- GPU driver version 391.25
- operating sys. windows 10 pro
NOTE: I installed tensorflow-gpu 1.12 (the latest version) but it didn't work out for me
python tensorflow
add a comment |
up vote
-2
down vote
favorite
I installed tensorflow-gpu on my laptop but when I try to create a new session I get this error:
`> import tensorflow as tf
hello = tf.constant('hi,tensorflow')
sess = tf.Session()
2018-11-22 01:32:54.083160: I C:UsersUserSourceRepostensorflowtensorflowcorecommon_runtimegpugpu_device.cc:1105] Found device 0 with properties:
name: GeForce MX150 major: 6 minor: 1 memoryClockRate(GHz): 1.5315
pciBusID: 0000:01:00.0
totalMemory: 4.00GiB freeMemory: 3.32GiB
2018-11-22 01:32:54.090965: I C:UsersUserSourceRepostensorflowtensorflowcorecommon_runtimegpugpu_device.cc:1195] Creating TensorFlow device (/device:GPU:0) -> (device: 0, name: GeForce MX150, pci bus id: 0000:01:00.0, compute capability: 6.1)
2018-11-22 01:32:54.101480: E C:UsersUserSourceRepostensorflowtensorflowcorecommon_runtimedirect_session.cc:168] Internal: cudaGetDevice() failed. Status: CUDA driver version is insufficient for CUDA runtime version
Traceback (most recent call last):
File "", line 1, in
File "C:UsersMHDAnaconda3envstf_15libsite-packagestensorflowpythonclientsession.py", line 1509, in init
super(Session, self).init(target, graph, config=config)
File "C:UsersMHDAnaconda3envstf_15libsite-packagestensorflowpythonclientsession.py", line 628, in init
self._session = tf_session.TF_NewDeprecatedSession(opts, status)
File "C:UsersMHDAnaconda3envstf_15libsite-packagestensorflowpythonframeworkerrors_impl.py", line 473, in exit
c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.InternalError: Failed to create session.`
- tensorflow-gpu 1.5.0
- CUDA Toolkit 9.1
- cudNN 7.0.5
- python 3.6.7
- GPU Nvidia Geforce MX150 (4 GB)
- GPU driver version 391.25
- operating sys. windows 10 pro
NOTE: I installed tensorflow-gpu 1.12 (the latest version) but it didn't work out for me
python tensorflow
Don't post code or output as images, post them es text within your question. And then read everything here: docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html
– talonmies
Nov 22 at 0:22
Says it all in the screenshot you posted,cuda driver version is insufficient for cuda runtime version
. See this.
– lieblos
Nov 22 at 0:30
the problem has solved by updating the driver and restarting the computer :)
– Mhd Dabbas
Nov 22 at 5:33
add a comment |
up vote
-2
down vote
favorite
up vote
-2
down vote
favorite
I installed tensorflow-gpu on my laptop but when I try to create a new session I get this error:
`> import tensorflow as tf
hello = tf.constant('hi,tensorflow')
sess = tf.Session()
2018-11-22 01:32:54.083160: I C:UsersUserSourceRepostensorflowtensorflowcorecommon_runtimegpugpu_device.cc:1105] Found device 0 with properties:
name: GeForce MX150 major: 6 minor: 1 memoryClockRate(GHz): 1.5315
pciBusID: 0000:01:00.0
totalMemory: 4.00GiB freeMemory: 3.32GiB
2018-11-22 01:32:54.090965: I C:UsersUserSourceRepostensorflowtensorflowcorecommon_runtimegpugpu_device.cc:1195] Creating TensorFlow device (/device:GPU:0) -> (device: 0, name: GeForce MX150, pci bus id: 0000:01:00.0, compute capability: 6.1)
2018-11-22 01:32:54.101480: E C:UsersUserSourceRepostensorflowtensorflowcorecommon_runtimedirect_session.cc:168] Internal: cudaGetDevice() failed. Status: CUDA driver version is insufficient for CUDA runtime version
Traceback (most recent call last):
File "", line 1, in
File "C:UsersMHDAnaconda3envstf_15libsite-packagestensorflowpythonclientsession.py", line 1509, in init
super(Session, self).init(target, graph, config=config)
File "C:UsersMHDAnaconda3envstf_15libsite-packagestensorflowpythonclientsession.py", line 628, in init
self._session = tf_session.TF_NewDeprecatedSession(opts, status)
File "C:UsersMHDAnaconda3envstf_15libsite-packagestensorflowpythonframeworkerrors_impl.py", line 473, in exit
c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.InternalError: Failed to create session.`
- tensorflow-gpu 1.5.0
- CUDA Toolkit 9.1
- cudNN 7.0.5
- python 3.6.7
- GPU Nvidia Geforce MX150 (4 GB)
- GPU driver version 391.25
- operating sys. windows 10 pro
NOTE: I installed tensorflow-gpu 1.12 (the latest version) but it didn't work out for me
python tensorflow
I installed tensorflow-gpu on my laptop but when I try to create a new session I get this error:
`> import tensorflow as tf
hello = tf.constant('hi,tensorflow')
sess = tf.Session()
2018-11-22 01:32:54.083160: I C:UsersUserSourceRepostensorflowtensorflowcorecommon_runtimegpugpu_device.cc:1105] Found device 0 with properties:
name: GeForce MX150 major: 6 minor: 1 memoryClockRate(GHz): 1.5315
pciBusID: 0000:01:00.0
totalMemory: 4.00GiB freeMemory: 3.32GiB
2018-11-22 01:32:54.090965: I C:UsersUserSourceRepostensorflowtensorflowcorecommon_runtimegpugpu_device.cc:1195] Creating TensorFlow device (/device:GPU:0) -> (device: 0, name: GeForce MX150, pci bus id: 0000:01:00.0, compute capability: 6.1)
2018-11-22 01:32:54.101480: E C:UsersUserSourceRepostensorflowtensorflowcorecommon_runtimedirect_session.cc:168] Internal: cudaGetDevice() failed. Status: CUDA driver version is insufficient for CUDA runtime version
Traceback (most recent call last):
File "", line 1, in
File "C:UsersMHDAnaconda3envstf_15libsite-packagestensorflowpythonclientsession.py", line 1509, in init
super(Session, self).init(target, graph, config=config)
File "C:UsersMHDAnaconda3envstf_15libsite-packagestensorflowpythonclientsession.py", line 628, in init
self._session = tf_session.TF_NewDeprecatedSession(opts, status)
File "C:UsersMHDAnaconda3envstf_15libsite-packagestensorflowpythonframeworkerrors_impl.py", line 473, in exit
c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.InternalError: Failed to create session.`
- tensorflow-gpu 1.5.0
- CUDA Toolkit 9.1
- cudNN 7.0.5
- python 3.6.7
- GPU Nvidia Geforce MX150 (4 GB)
- GPU driver version 391.25
- operating sys. windows 10 pro
NOTE: I installed tensorflow-gpu 1.12 (the latest version) but it didn't work out for me
python tensorflow
python tensorflow
edited Nov 24 at 13:28
talonmies
59k17128195
59k17128195
asked Nov 22 at 0:01
Mhd Dabbas
11
11
Don't post code or output as images, post them es text within your question. And then read everything here: docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html
– talonmies
Nov 22 at 0:22
Says it all in the screenshot you posted,cuda driver version is insufficient for cuda runtime version
. See this.
– lieblos
Nov 22 at 0:30
the problem has solved by updating the driver and restarting the computer :)
– Mhd Dabbas
Nov 22 at 5:33
add a comment |
Don't post code or output as images, post them es text within your question. And then read everything here: docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html
– talonmies
Nov 22 at 0:22
Says it all in the screenshot you posted,cuda driver version is insufficient for cuda runtime version
. See this.
– lieblos
Nov 22 at 0:30
the problem has solved by updating the driver and restarting the computer :)
– Mhd Dabbas
Nov 22 at 5:33
Don't post code or output as images, post them es text within your question. And then read everything here: docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html
– talonmies
Nov 22 at 0:22
Don't post code or output as images, post them es text within your question. And then read everything here: docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html
– talonmies
Nov 22 at 0:22
Says it all in the screenshot you posted,
cuda driver version is insufficient for cuda runtime version
. See this.– lieblos
Nov 22 at 0:30
Says it all in the screenshot you posted,
cuda driver version is insufficient for cuda runtime version
. See this.– lieblos
Nov 22 at 0:30
the problem has solved by updating the driver and restarting the computer :)
– Mhd Dabbas
Nov 22 at 5:33
the problem has solved by updating the driver and restarting the computer :)
– Mhd Dabbas
Nov 22 at 5:33
add a comment |
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53422131%2ftensorflow-failed-to-create-session%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53422131%2ftensorflow-failed-to-create-session%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Don't post code or output as images, post them es text within your question. And then read everything here: docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html
– talonmies
Nov 22 at 0:22
Says it all in the screenshot you posted,
cuda driver version is insufficient for cuda runtime version
. See this.– lieblos
Nov 22 at 0:30
the problem has solved by updating the driver and restarting the computer :)
– Mhd Dabbas
Nov 22 at 5:33