{"action":"created","issue":{"url":"https://api.github.com/repos/allenai/bi-att-flow/issues/41","repository_url":"https://api.github.com/repos/allenai/bi-att-flow","labels_url":"https://api.github.com/repos/allenai/bi-att-flow/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/allenai/bi-att-flow/issues/41/comments","events_url":"https://api.github.com/repos/allenai/bi-att-flow/issues/41/events","html_url":"https://github.com/allenai/bi-att-flow/issues/41","id":242883904,"node_id":"MDU6SXNzdWUyNDI4ODM5MDQ=","number":41,"title":"Error when running this tensorflow-1.1.0 version","user":{"login":"x-zho14","id":18229987,"node_id":"MDQ6VXNlcjE4MjI5OTg3","avatar_url":"https://avatars0.githubusercontent.com/u/18229987?v=4","gravatar_id":"","url":"https://api.github.com/users/x-zho14","html_url":"https://github.com/x-zho14","followers_url":"https://api.github.com/users/x-zho14/followers","following_url":"https://api.github.com/users/x-zho14/following{/other_user}","gists_url":"https://api.github.com/users/x-zho14/gists{/gist_id}","starred_url":"https://api.github.com/users/x-zho14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x-zho14/subscriptions","organizations_url":"https://api.github.com/users/x-zho14/orgs","repos_url":"https://api.github.com/users/x-zho14/repos","events_url":"https://api.github.com/users/x-zho14/events{/privacy}","received_events_url":"https://api.github.com/users/x-zho14/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2017-07-14T02:57:26Z","updated_at":"2018-11-16T11:30:58Z","closed_at":null,"author_association":"NONE","body":"``$ python -m basic.cli --mode train --noload --debug\r\nTraceback (most recent call last):\r\n  File \"anaconda2/envs/tensorflow/lib/python3.5/runpy.py\", line 193, in _run_module_as_main\r\n    \"__main__\", mod_spec)\r\n  File \"anaconda2/envs/tensorflow/lib/python3.5/runpy.py\", line 85, in _run_code\r\n    exec(code, run_globals)\r\n  File \"/bi-att-flow/basic/cli.py\", line 5, in <module>\r\n    from basic.main import main as m\r\n  File \"/bi-att-flow/basic/main.py\", line 14, in <module>\r\n    from basic.model import get_multi_gpu_models\r\n  File \"/bi-att-flow/basic/model.py\", line 6, in <module>\r\n    from tensorflow.python.ops.rnn_cell import BasicLSTMCell\r\nImportError: No module named 'tensorflow.python.ops.rnn_cell'\r\n\r\nI have installed the tensorflow-gpu 1.1.0 version and python 3.5.3 and all the required libraries.\r\n\r\nIt may seem some error with the code version and tensorflow, how can I solve this problem?\r\n\r\nWell, it's hard to find a tensorflow-gpu 0.11 version available now so I have to run the 1.1.0 version.\r\n\r\nThanks a lot!"},"comment":{"url":"https://api.github.com/repos/allenai/bi-att-flow/issues/comments/439366348","html_url":"https://github.com/allenai/bi-att-flow/issues/41#issuecomment-439366348","issue_url":"https://api.github.com/repos/allenai/bi-att-flow/issues/41","id":439366348,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTM2NjM0OA==","user":{"login":"valsworthen","id":18659328,"node_id":"MDQ6VXNlcjE4NjU5MzI4","avatar_url":"https://avatars2.githubusercontent.com/u/18659328?v=4","gravatar_id":"","url":"https://api.github.com/users/valsworthen","html_url":"https://github.com/valsworthen","followers_url":"https://api.github.com/users/valsworthen/followers","following_url":"https://api.github.com/users/valsworthen/following{/other_user}","gists_url":"https://api.github.com/users/valsworthen/gists{/gist_id}","starred_url":"https://api.github.com/users/valsworthen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valsworthen/subscriptions","organizations_url":"https://api.github.com/users/valsworthen/orgs","repos_url":"https://api.github.com/users/valsworthen/repos","events_url":"https://api.github.com/users/valsworthen/events{/privacy}","received_events_url":"https://api.github.com/users/valsworthen/received_events","type":"User","site_admin":false},"created_at":"2018-11-16T11:30:58Z","updated_at":"2018-11-16T11:30:58Z","author_association":"NONE","body":"Finally I managed to run the code correctly on GPU \r\n\r\n- `pip install tensorflow-gpu==1.2` (the version of @abeerunscore96 only installs tensorflow for cpu)\r\n- make sure you have CUDA 8 and cuDNN 5 (or 5.1) and that you correctly setup the `.bashrc` \r\n- use the **dev** branch of the repo\r\n\r\nRun `CUDA_VISIBLE_DEVICES=devicenumber python -m basic.cli --mode train --noload --debug`\r\n\r\nI didn't have the issue with `_linear` mentioned in this thread.\r\n\r\nI think this would also work for the **master** branch with tensorflow 0.11 / 0.12 provided you install the gpu version.\r\n"}}
{"actor":{"display_login":"valsworthen"}}