{"action":"created","comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/pulls/comments/86018603","pull_request_review_id":6699055,"id":86018603,"diff_hunk":"@@ -119,4 +127,31 @@ class ReadFileOp : public OpKernel {\n \n REGISTER_KERNEL_BUILDER(Name(\"ReadFile\").Device(DEVICE_CPU), ReadFileOp);\n \n+class WriteFileOp : public OpKernel {\n+  public:\n+    using OpKernel::OpKernel;","path":"tensorflow/core/kernels/whole_file_read_ops.cc","position":21,"original_position":21,"commit_id":"55bd0f40299a5c2a4029b9394bec978bcc038951","original_commit_id":"55bd0f40299a5c2a4029b9394bec978bcc038951","user":{"login":"malzantot","id":1429452,"avatar_url":"https://avatars.githubusercontent.com/u/1429452?v=3","gravatar_id":"","url":"https://api.github.com/users/malzantot","html_url":"https://github.com/malzantot","followers_url":"https://api.github.com/users/malzantot/followers","following_url":"https://api.github.com/users/malzantot/following{/other_user}","gists_url":"https://api.github.com/users/malzantot/gists{/gist_id}","starred_url":"https://api.github.com/users/malzantot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malzantot/subscriptions","organizations_url":"https://api.github.com/users/malzantot/orgs","repos_url":"https://api.github.com/users/malzantot/repos","events_url":"https://api.github.com/users/malzantot/events{/privacy}","received_events_url":"https://api.github.com/users/malzantot/received_events","type":"User","site_admin":false},"body":"If I remove this line compilation fails with \"no matching constructor \" error message.\r\n`error: no matching constructor for initialization of 'tensorflow::WriteFileOp'\r\n note: candidate constructor (the implicit copy constructor) not viable: no known conversion from '::tensorflow::OpKernelConstruction *' to 'const tensorflow::WriteFileOp' for 1st argument\r\nclass WriteFileOp : public OpKernel {\r\n`","created_at":"2016-11-01T20:35:39Z","updated_at":"2016-11-01T20:35:39Z","html_url":"https://github.com/tensorflow/tensorflow/pull/5330#discussion_r86018603","pull_request_url":"https://api.github.com/repos/tensorflow/tensorflow/pulls/5330","_links":{"self":{"href":"https://api.github.com/repos/tensorflow/tensorflow/pulls/comments/86018603"},"html":{"href":"https://github.com/tensorflow/tensorflow/pull/5330#discussion_r86018603"},"pull_request":{"href":"https://api.github.com/repos/tensorflow/tensorflow/pulls/5330"}}},"pull_request":{"url":"https://api.github.com/repos/tensorflow/tensorflow/pulls/5330","id":91829795,"html_url":"https://github.com/tensorflow/tensorflow/pull/5330","diff_url":"https://github.com/tensorflow/tensorflow/pull/5330.diff","patch_url":"https://github.com/tensorflow/tensorflow/pull/5330.patch","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/5330","number":5330,"state":"open","locked":false,"title":"Implementing WriteFile Op","user":{"login":"malzantot","id":1429452,"avatar_url":"https://avatars.githubusercontent.com/u/1429452?v=3","gravatar_id":"","url":"https://api.github.com/users/malzantot","html_url":"https://github.com/malzantot","followers_url":"https://api.github.com/users/malzantot/followers","following_url":"https://api.github.com/users/malzantot/following{/other_user}","gists_url":"https://api.github.com/users/malzantot/gists{/gist_id}","starred_url":"https://api.github.com/users/malzantot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malzantot/subscriptions","organizations_url":"https://api.github.com/users/malzantot/orgs","repos_url":"https://api.github.com/users/malzantot/repos","events_url":"https://api.github.com/users/malzantot/events{/privacy}","received_events_url":"https://api.github.com/users/malzantot/received_events","type":"User","site_admin":false},"body":"Hello,\r\nI created a pull request which implements `tf.write_file` OP requested [here](https://github.com/tensorflow/tensorflow/issues/4471). Please take a look.\r\n\r\nThanks,\r\nMoustafa","created_at":"2016-11-01T17:45:42Z","updated_at":"2016-11-01T20:35:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0e210c4ade7fbbee65f8301ce0d375ad8fae6276","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/tensorflow/tensorflow/pulls/5330/commits","review_comments_url":"https://api.github.com/repos/tensorflow/tensorflow/pulls/5330/comments","review_comment_url":"https://api.github.com/repos/tensorflow/tensorflow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/5330/comments","statuses_url":"https://api.github.com/repos/tensorflow/tensorflow/statuses/55bd0f40299a5c2a4029b9394bec978bcc038951","head":{"label":"malzantot:feature_tf_op_write_file","ref":"feature_tf_op_write_file","sha":"55bd0f40299a5c2a4029b9394bec978bcc038951","user":{"login":"malzantot","id":1429452,"avatar_url":"https://avatars.githubusercontent.com/u/1429452?v=3","gravatar_id":"","url":"https://api.github.com/users/malzantot","html_url":"https://github.com/malzantot","followers_url":"https://api.github.com/users/malzantot/followers","following_url":"https://api.github.com/users/malzantot/following{/other_user}","gists_url":"https://api.github.com/users/malzantot/gists{/gist_id}","starred_url":"https://api.github.com/users/malzantot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malzantot/subscriptions","organizations_url":"https://api.github.com/users/malzantot/orgs","repos_url":"https://api.github.com/users/malzantot/repos","events_url":"https://api.github.com/users/malzantot/events{/privacy}","received_events_url":"https://api.github.com/users/malzantot/received_events","type":"User","site_admin":false},"repo":{"id":69999357,"name":"tensorflow","full_name":"malzantot/tensorflow","owner":{"login":"malzantot","id":1429452,"avatar_url":"https://avatars.githubusercontent.com/u/1429452?v=3","gravatar_id":"","url":"https://api.github.com/users/malzantot","html_url":"https://github.com/malzantot","followers_url":"https://api.github.com/users/malzantot/followers","following_url":"https://api.github.com/users/malzantot/following{/other_user}","gists_url":"https://api.github.com/users/malzantot/gists{/gist_id}","starred_url":"https://api.github.com/users/malzantot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malzantot/subscriptions","organizations_url":"https://api.github.com/users/malzantot/orgs","repos_url":"https://api.github.com/users/malzantot/repos","events_url":"https://api.github.com/users/malzantot/events{/privacy}","received_events_url":"https://api.github.com/users/malzantot/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/malzantot/tensorflow","description":"Computation using data flow graphs for scalable machine learning","fork":true,"url":"https://api.github.com/repos/malzantot/tensorflow","forks_url":"https://api.github.com/repos/malzantot/tensorflow/forks","keys_url":"https://api.github.com/repos/malzantot/tensorflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/malzantot/tensorflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/malzantot/tensorflow/teams","hooks_url":"https://api.github.com/repos/malzantot/tensorflow/hooks","issue_events_url":"https://api.github.com/repos/malzantot/tensorflow/issues/events{/number}","events_url":"https://api.github.com/repos/malzantot/tensorflow/events","assignees_url":"https://api.github.com/repos/malzantot/tensorflow/assignees{/user}","branches_url":"https://api.github.com/repos/malzantot/tensorflow/branches{/branch}","tags_url":"https://api.github.com/repos/malzantot/tensorflow/tags","blobs_url":"https://api.github.com/repos/malzantot/tensorflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/malzantot/tensorflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/malzantot/tensorflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/malzantot/tensorflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/malzantot/tensorflow/statuses/{sha}","languages_url":"https://api.github.com/repos/malzantot/tensorflow/languages","stargazers_url":"https://api.github.com/repos/malzantot/tensorflow/stargazers","contributors_url":"https://api.github.com/repos/malzantot/tensorflow/contributors","subscribers_url":"https://api.github.com/repos/malzantot/tensorflow/subscribers","subscription_url":"https://api.github.com/repos/malzantot/tensorflow/subscription","commits_url":"https://api.github.com/repos/malzantot/tensorflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/malzantot/tensorflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/malzantot/tensorflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/malzantot/tensorflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/malzantot/tensorflow/contents/{+path}","compare_url":"https://api.github.com/repos/malzantot/tensorflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/malzantot/tensorflow/merges","archive_url":"https://api.github.com/repos/malzantot/tensorflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/malzantot/tensorflow/downloads","issues_url":"https://api.github.com/repos/malzantot/tensorflow/issues{/number}","pulls_url":"https://api.github.com/repos/malzantot/tensorflow/pulls{/number}","milestones_url":"https://api.github.com/repos/malzantot/tensorflow/milestones{/number}","notifications_url":"https://api.github.com/repos/malzantot/tensorflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/malzantot/tensorflow/labels{/name}","releases_url":"https://api.github.com/repos/malzantot/tensorflow/releases{/id}","deployments_url":"https://api.github.com/repos/malzantot/tensorflow/deployments","created_at":"2016-10-04T19:36:04Z","updated_at":"2016-10-04T19:36:18Z","pushed_at":"2016-11-01T17:41:47Z","git_url":"git://github.com/malzantot/tensorflow.git","ssh_url":"git@github.com:malzantot/tensorflow.git","clone_url":"https://github.com/malzantot/tensorflow.git","svn_url":"https://github.com/malzantot/tensorflow","homepage":"http://tensorflow.org","size":63123,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tensorflow:master","ref":"master","sha":"d9a89a5cf63b2ecedf68d3eefdc24be3f519e503","user":{"login":"tensorflow","id":15658638,"avatar_url":"https://avatars.githubusercontent.com/u/15658638?v=3","gravatar_id":"","url":"https://api.github.com/users/tensorflow","html_url":"https://github.com/tensorflow","followers_url":"https://api.github.com/users/tensorflow/followers","following_url":"https://api.github.com/users/tensorflow/following{/other_user}","gists_url":"https://api.github.com/users/tensorflow/gists{/gist_id}","starred_url":"https://api.github.com/users/tensorflow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tensorflow/subscriptions","organizations_url":"https://api.github.com/users/tensorflow/orgs","repos_url":"https://api.github.com/users/tensorflow/repos","events_url":"https://api.github.com/users/tensorflow/events{/privacy}","received_events_url":"https://api.github.com/users/tensorflow/received_events","type":"Organization","site_admin":false},"repo":{"id":45717250,"name":"tensorflow","full_name":"tensorflow/tensorflow","owner":{"login":"tensorflow","id":15658638,"avatar_url":"https://avatars.githubusercontent.com/u/15658638?v=3","gravatar_id":"","url":"https://api.github.com/users/tensorflow","html_url":"https://github.com/tensorflow","followers_url":"https://api.github.com/users/tensorflow/followers","following_url":"https://api.github.com/users/tensorflow/following{/other_user}","gists_url":"https://api.github.com/users/tensorflow/gists{/gist_id}","starred_url":"https://api.github.com/users/tensorflow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tensorflow/subscriptions","organizations_url":"https://api.github.com/users/tensorflow/orgs","repos_url":"https://api.github.com/users/tensorflow/repos","events_url":"https://api.github.com/users/tensorflow/events{/privacy}","received_events_url":"https://api.github.com/users/tensorflow/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tensorflow/tensorflow","description":"Computation using data flow graphs for scalable machine learning","fork":false,"url":"https://api.github.com/repos/tensorflow/tensorflow","forks_url":"https://api.github.com/repos/tensorflow/tensorflow/forks","keys_url":"https://api.github.com/repos/tensorflow/tensorflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tensorflow/tensorflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tensorflow/tensorflow/teams","hooks_url":"https://api.github.com/repos/tensorflow/tensorflow/hooks","issue_events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/events{/number}","events_url":"https://api.github.com/repos/tensorflow/tensorflow/events","assignees_url":"https://api.github.com/repos/tensorflow/tensorflow/assignees{/user}","branches_url":"https://api.github.com/repos/tensorflow/tensorflow/branches{/branch}","tags_url":"https://api.github.com/repos/tensorflow/tensorflow/tags","blobs_url":"https://api.github.com/repos/tensorflow/tensorflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tensorflow/tensorflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tensorflow/tensorflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/tensorflow/tensorflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tensorflow/tensorflow/statuses/{sha}","languages_url":"https://api.github.com/repos/tensorflow/tensorflow/languages","stargazers_url":"https://api.github.com/repos/tensorflow/tensorflow/stargazers","contributors_url":"https://api.github.com/repos/tensorflow/tensorflow/contributors","subscribers_url":"https://api.github.com/repos/tensorflow/tensorflow/subscribers","subscription_url":"https://api.github.com/repos/tensorflow/tensorflow/subscription","commits_url":"https://api.github.com/repos/tensorflow/tensorflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/tensorflow/tensorflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/tensorflow/tensorflow/contents/{+path}","compare_url":"https://api.github.com/repos/tensorflow/tensorflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tensorflow/tensorflow/merges","archive_url":"https://api.github.com/repos/tensorflow/tensorflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tensorflow/tensorflow/downloads","issues_url":"https://api.github.com/repos/tensorflow/tensorflow/issues{/number}","pulls_url":"https://api.github.com/repos/tensorflow/tensorflow/pulls{/number}","milestones_url":"https://api.github.com/repos/tensorflow/tensorflow/milestones{/number}","notifications_url":"https://api.github.com/repos/tensorflow/tensorflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/labels{/name}","releases_url":"https://api.github.com/repos/tensorflow/tensorflow/releases{/id}","deployments_url":"https://api.github.com/repos/tensorflow/tensorflow/deployments","created_at":"2015-11-07T01:19:20Z","updated_at":"2016-11-01T20:07:27Z","pushed_at":"2016-11-01T19:59:03Z","git_url":"git://github.com/tensorflow/tensorflow.git","ssh_url":"git@github.com:tensorflow/tensorflow.git","clone_url":"https://github.com/tensorflow/tensorflow.git","svn_url":"https://github.com/tensorflow/tensorflow","homepage":"http://tensorflow.org","size":386986,"stargazers_count":35899,"watchers_count":35899,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":16061,"mirror_url":null,"open_issues_count":601,"forks":16061,"open_issues":601,"watchers":35899,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tensorflow/tensorflow/pulls/5330"},"html":{"href":"https://github.com/tensorflow/tensorflow/pull/5330"},"issue":{"href":"https://api.github.com/repos/tensorflow/tensorflow/issues/5330"},"comments":{"href":"https://api.github.com/repos/tensorflow/tensorflow/issues/5330/comments"},"review_comments":{"href":"https://api.github.com/repos/tensorflow/tensorflow/pulls/5330/comments"},"review_comment":{"href":"https://api.github.com/repos/tensorflow/tensorflow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tensorflow/tensorflow/pulls/5330/commits"},"statuses":{"href":"https://api.github.com/repos/tensorflow/tensorflow/statuses/55bd0f40299a5c2a4029b9394bec978bcc038951"}}}}
{"actor":{"display_login":"malzantot"}}