{"action":"opened","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/4727","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/4727/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/4727/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/4727/events","html_url":"https://github.com/tensorflow/tensorflow/issues/4727","id":180598548,"number":4727,"title":"Multiple issues with C++ custom ops","user":{"login":"hholst80","id":6200749,"avatar_url":"https://avatars.githubusercontent.com/u/6200749?v=3","gravatar_id":"","url":"https://api.github.com/users/hholst80","html_url":"https://github.com/hholst80","followers_url":"https://api.github.com/users/hholst80/followers","following_url":"https://api.github.com/users/hholst80/following{/other_user}","gists_url":"https://api.github.com/users/hholst80/gists{/gist_id}","starred_url":"https://api.github.com/users/hholst80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hholst80/subscriptions","organizations_url":"https://api.github.com/users/hholst80/orgs","repos_url":"https://api.github.com/users/hholst80/repos","events_url":"https://api.github.com/users/hholst80/events{/privacy}","received_events_url":"https://api.github.com/users/hholst80/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-03T09:36:44Z","updated_at":"2016-10-03T09:36:44Z","closed_at":null,"body":"I was following the instructions below to define a custom op called `zero_out`.\r\n\r\nhttps://github.com/tensorflow/tensorflow/blob/aaeb50c55427350841f7a0c226af9db174397d55/tensorflow/g3doc/how_tos/adding_an_op/index.md\r\n\r\nI found a few issues:\r\n\r\n1. You cannot load a `so` file without giving an absolute path (or prefixing with `./`). \r\n2. The zero_out_module has no zero_out component. \r\n\r\n- - -\r\n\r\n```\r\nIn [1]: import tensorflow as tf\r\n\r\nIn [2]: zero_out_module = tf.load_op_library('zero_out.so')\r\n---------------------------------------------------------------------------\r\nNotFoundError                             Traceback (most recent call last)\r\n<ipython-input-2-e4878fcfc44f> in <module>()\r\n----> 1 zero_out_module = tf.load_op_library('zero_out.so')\r\n\r\n/home/hholst/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/load_library.py in load_op_library(library_filename)\r\n     73           return _OP_LIBRARY_MAP[library_filename]\r\n     74       # pylint: disable=protected-access\r\n---> 75       raise errors._make_specific_exception(None, None, error_msg, error_code)\r\n     76       # pylint: enable=protected-access\r\n     77   finally:\r\n\r\nNotFoundError: zero_out.so: cannot open shared object file: No such file or directory\r\n\r\nIn [3]: zero_out_module = tf.load_op_library('./zero_out.so')\r\n\r\nIn [4]: \r\n\r\n```\r\n\r\n![image](https://cloud.githubusercontent.com/assets/6200749/19033213/9620c9ec-895d-11e6-8f4e-db477b4b5397.png)\r\n\r\n"}}
{"actor":{"display_login":"hholst80"}}