InternalError:无法创建会话

时间:2018-09-26 17:54:09

标签: python tensorflow windows-10

尝试运行简单代码

import tensorflow as tf
hello = tf.constant('hi,tensorflow')
sess = tf.Session()

收到此错误

File "<ipython-input-65-6c2d470a56ee>", line 3, in <module>
    sess = tf.Session()

  File "C:\Users\DELL\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\client\session.py", line 1494, in __init__
    super(Session, self).__init__(target, graph, config=config)

  File "C:\Users\DELL\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\client\session.py", line 626, in __init__
    self._session = tf_session.TF_NewSession(self._graph._c_graph, opts)

InternalError: Failed to create session.

我正在Windows 10系统上运行它。

0 个答案:

没有答案