{"action":"opened","issue":{"url":"https://api.github.com/repos/googlecolab/colabtools/issues/208","repository_url":"https://api.github.com/repos/googlecolab/colabtools","labels_url":"https://api.github.com/repos/googlecolab/colabtools/issues/208/labels{/name}","comments_url":"https://api.github.com/repos/googlecolab/colabtools/issues/208/comments","events_url":"https://api.github.com/repos/googlecolab/colabtools/issues/208/events","html_url":"https://github.com/googlecolab/colabtools/issues/208","id":341185118,"node_id":"MDU6SXNzdWUzNDExODUxMTg=","number":208,"title":"tensorflow failed to create session","user":{"login":"KL4805","id":28502146,"node_id":"MDQ6VXNlcjI4NTAyMTQ2","avatar_url":"https://avatars1.githubusercontent.com/u/28502146?v=4","gravatar_id":"","url":"https://api.github.com/users/KL4805","html_url":"https://github.com/KL4805","followers_url":"https://api.github.com/users/KL4805/followers","following_url":"https://api.github.com/users/KL4805/following{/other_user}","gists_url":"https://api.github.com/users/KL4805/gists{/gist_id}","starred_url":"https://api.github.com/users/KL4805/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KL4805/subscriptions","organizations_url":"https://api.github.com/users/KL4805/orgs","repos_url":"https://api.github.com/users/KL4805/repos","events_url":"https://api.github.com/users/KL4805/events{/privacy}","received_events_url":"https://api.github.com/users/KL4805/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-13T23:18:26Z","updated_at":"2018-07-13T23:18:26Z","closed_at":null,"author_association":"NONE","body":"I was using colab to launch a tensorflow session using the following code\r\n`f = open('drive/GMF.log', 'w')`\r\n`config = tf.ConfigProto(log_device_placement = False, allow_soft_placement = True)`\r\n`sess = tf.Session(config = config`\r\n`sess.run(init)`\r\n`writer = tf.summary.FileWriter('GMF/log', tf.get_default_graph())`\r\n, but the following appeared. \r\n---------------------------------------------------------------------------\r\nInternalError                             Traceback (most recent call last)\r\n<ipython-input-91-f3788799e193> in <module>()\r\n      1 f = open('drive/GMF.log', 'w')\r\n      2 config = tf.ConfigProto(log_device_placement = False, allow_soft_placement = True)\r\n----> 3 sess = tf.Session(config = config)\r\n      4 sess.run(init)\r\n      5 writer = tf.summary.FileWriter('GMF/log', tf.get_default_graph())\r\n\r\n/usr/local/lib/python3.6/dist-packages/tensorflow/python/client/session.py in __init__(self, target, graph, config)\r\n   1561 \r\n   1562     \"\"\"\r\n-> 1563     super(Session, self).__init__(target, graph, config=config)\r\n   1564     # NOTE(mrry): Create these on first `__enter__` to avoid a reference cycle.\r\n   1565     self._default_graph_context_manager = None\r\n\r\n/usr/local/lib/python3.6/dist-packages/tensorflow/python/client/session.py in __init__(self, target, graph, config)\r\n    631       if self._created_with_new_api:\r\n    632         # pylint: disable=protected-access\r\n--> 633         self._session = tf_session.TF_NewSession(self._graph._c_graph, opts)\r\n    634         # pylint: enable=protected-access\r\n    635       else:\r\n\r\nInternalError: Failed to create session.\r\n\r\nIt may be due to the problem of running out of memory, but nvidia-smi returned no currently running processes. It is odd. "}}
{"actor":{"display_login":"KL4805"}}