{"action":"created","issue":{"url":"https://api.github.com/repos/keras-team/keras/issues/10541","repository_url":"https://api.github.com/repos/keras-team/keras","labels_url":"https://api.github.com/repos/keras-team/keras/issues/10541/labels{/name}","comments_url":"https://api.github.com/repos/keras-team/keras/issues/10541/comments","events_url":"https://api.github.com/repos/keras-team/keras/issues/10541/events","html_url":"https://github.com/keras-team/keras/issues/10541","id":336126847,"node_id":"MDU6SXNzdWUzMzYxMjY4NDc=","number":10541,"title":"multi_gpu_model value error Tensor must be from same graph","user":{"login":"ems7","id":6524075,"node_id":"MDQ6VXNlcjY1MjQwNzU=","avatar_url":"https://avatars0.githubusercontent.com/u/6524075?v=4","gravatar_id":"","url":"https://api.github.com/users/ems7","html_url":"https://github.com/ems7","followers_url":"https://api.github.com/users/ems7/followers","following_url":"https://api.github.com/users/ems7/following{/other_user}","gists_url":"https://api.github.com/users/ems7/gists{/gist_id}","starred_url":"https://api.github.com/users/ems7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ems7/subscriptions","organizations_url":"https://api.github.com/users/ems7/orgs","repos_url":"https://api.github.com/users/ems7/repos","events_url":"https://api.github.com/users/ems7/events{/privacy}","received_events_url":"https://api.github.com/users/ems7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-27T08:28:14Z","updated_at":"2018-10-20T17:54:27Z","closed_at":null,"author_association":"NONE","body":"```\r\nTraceback (most recent call last):\r\n  File \"/home/user/cluster/base/FullyConvolutional.py\", line 959, in <module>\r\n    gr.pretrainSBU(110)\r\n  File \"/home/user/cluster/base/FullyConvolutional.py\", line 897, in pretrainSBU\r\n    period=10)]) # train the new layer until no improvement occurs\r\n  File \"/home/user/software/tensorflow/lib/python2.7/site-packages/keras/engine/training.py\", line 1013, in fit\r\n    self._make_train_function()\r\n  File \"/home/user/software/tensorflow/lib/python2.7/site-packages/keras/engine/training.py\", line 497, in _make_train_function\r\n    loss=self.total_loss)\r\n  File \"/home/user/software/tensorflow/lib/python2.7/site-packages/keras/legacy/interfaces.py\", line 91, in wrapper\r\n    return func(*args, **kwargs)\r\n  File \"/home/user/software/tensorflow/lib/python2.7/site-packages/keras/optimizers.py\", line 381, in get_updates\r\n    new_a = self.rho * a + (1. - self.rho) * K.square(g)\r\n  File \"/home/user/software/tensorflow/lib/python2.7/site-packages/tensorflow/python/ops/math_ops.py\", line 967, in binary_op_wrapper\r\n    with ops.name_scope(None, op_name, [x, y]) as name:\r\n  File \"/home/user/software/tensorflow/lib/python2.7/site-packages/tensorflow/python/framework/ops.py\", line 5977, in __enter__\r\n    g = _get_graph_from_inputs(self._values)\r\n  File \"/home/user/software/tensorflow/lib/python2.7/site-packages/tensorflow/python/framework/ops.py\", line 5637, in _get_graph_from_inputs\r\n    _assert_same_graph(original_graph_element, graph_element)\r\n  File \"/home/user/software/tensorflow/lib/python2.7/site-packages/tensorflow/python/framework/ops.py\", line 5573, in _assert_same_graph\r\n    original_item))\r\nValueError: Tensor(\"mul:0\", shape=(3, 3, 3, 64), dtype=float32) must be from the same graph as Tensor(\"training/Adadelta/mul:0\", shape=(3, 3, 3, 64), dtype=float32).\r\n\r\n\r\n```\r\nPython 2.7\r\nKeras version 2.2.0\r\nTensorflow-gpu version 1.8.0\r\nCuda 9.0\r\nCudnn 7.0\r\n\r\nIssue occurs when using keras.optimizers.Adadelta(), also occurs with SGD. I haven't tried other optimisers.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/keras-team/keras/issues/comments/431604258","html_url":"https://github.com/keras-team/keras/issues/10541#issuecomment-431604258","issue_url":"https://api.github.com/repos/keras-team/keras/issues/10541","id":431604258,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTYwNDI1OA==","user":{"login":"azammemon2000","id":39512910,"node_id":"MDQ6VXNlcjM5NTEyOTEw","avatar_url":"https://avatars1.githubusercontent.com/u/39512910?v=4","gravatar_id":"","url":"https://api.github.com/users/azammemon2000","html_url":"https://github.com/azammemon2000","followers_url":"https://api.github.com/users/azammemon2000/followers","following_url":"https://api.github.com/users/azammemon2000/following{/other_user}","gists_url":"https://api.github.com/users/azammemon2000/gists{/gist_id}","starred_url":"https://api.github.com/users/azammemon2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azammemon2000/subscriptions","organizations_url":"https://api.github.com/users/azammemon2000/orgs","repos_url":"https://api.github.com/users/azammemon2000/repos","events_url":"https://api.github.com/users/azammemon2000/events{/privacy}","received_events_url":"https://api.github.com/users/azammemon2000/received_events","type":"User","site_admin":false},"created_at":"2018-10-20T17:54:27Z","updated_at":"2018-10-20T17:54:27Z","author_association":"NONE","body":"@ems7 is your problem resolved? can you mention the solution here? I am also facing the same issue."}}
{"actor":{"display_login":"azammemon2000"}}