{"action":"created","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":"Minor issues with C++ custom ops documentation","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":[{"id":299643928,"url":"https://api.github.com/repos/tensorflow/tensorflow/labels/contributions%20welcome","name":"contributions welcome","color":"009800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-03T09:36:44Z","updated_at":"2016-11-23T13:05:32Z","closed_at":null,"body":"I was following the instructions below to define a custom op called `zero_out`.\n\nhttps://github.com/tensorflow/tensorflow/blob/aaeb50c55427350841f7a0c226af9db174397d55/tensorflow/g3doc/how_tos/adding_an_op/index.md\n\nI found a few issues:\n1. You cannot load a `so` file without giving an absolute path (or prefixing with `./`). \n2. The zero_out_module has no zero_out component. \n\n---\n\n```\nIn [1]: import tensorflow as tf\n\nIn [2]: zero_out_module = tf.load_op_library('zero_out.so')\n---------------------------------------------------------------------------\nNotFoundError                             Traceback (most recent call last)\n<ipython-input-2-e4878fcfc44f> in <module>()\n----> 1 zero_out_module = tf.load_op_library('zero_out.so')\n\n/home/hholst/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/load_library.py in load_op_library(library_filename)\n     73           return _OP_LIBRARY_MAP[library_filename]\n     74       # pylint: disable=protected-access\n---> 75       raise errors._make_specific_exception(None, None, error_msg, error_code)\n     76       # pylint: enable=protected-access\n     77   finally:\n\nNotFoundError: zero_out.so: cannot open shared object file: No such file or directory\n\nIn [3]: zero_out_module = tf.load_op_library('./zero_out.so')\n\nIn [4]: \n\n```\n\n![image](https://cloud.githubusercontent.com/assets/6200749/19033213/9620c9ec-895d-11e6-8f4e-db477b4b5397.png)\n"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/262507616","html_url":"https://github.com/tensorflow/tensorflow/issues/4727#issuecomment-262507616","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/4727","id":262507616,"user":{"login":"tenstep","id":8860935,"avatar_url":"https://avatars.githubusercontent.com/u/8860935?v=3","gravatar_id":"","url":"https://api.github.com/users/tenstep","html_url":"https://github.com/tenstep","followers_url":"https://api.github.com/users/tenstep/followers","following_url":"https://api.github.com/users/tenstep/following{/other_user}","gists_url":"https://api.github.com/users/tenstep/gists{/gist_id}","starred_url":"https://api.github.com/users/tenstep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tenstep/subscriptions","organizations_url":"https://api.github.com/users/tenstep/orgs","repos_url":"https://api.github.com/users/tenstep/repos","events_url":"https://api.github.com/users/tenstep/events{/privacy}","received_events_url":"https://api.github.com/users/tenstep/received_events","type":"User","site_admin":false},"created_at":"2016-11-23T13:05:32Z","updated_at":"2016-11-23T13:05:32Z","body":"I met the same problem and still not understand your solution to the latter issue. What do you mean by `I did not call REGISTER_OP`?, I have added `REGISTER_OP(\"ZeroOut\").Input.....` in zero_out.cc but the issue still exists. Or do you mean adding something like `REGISTER_OP(zero_out)......`? But what is the input and output? Or do I need some additional command to call  `REGISTER_OP`? Thanks in advance! "}}
{"actor":{"display_login":"tenstep"}}