{"action":"created","comment":{"url":"https://api.github.com/repos/Arafatk/tensorflow.rb/pulls/comments/72272959","id":72272959,"diff_hunk":"@@ -66,18 +67,27 @@ def define_op(opName, name , input, device, attrs)\n     op = self.available_ops[opName.downcase]\n     raise (\"Operation does not exist.\") if !op\n     opName = op.name   # This ensures that case-sensitivity does not become an issue\n+    input ||= []\n     raise (\"Invalid number of inputs.\") if op.input_arg.length != input.length\n     inputs = []\n-    input.each do |node|\n-      inputs.push(node.definition.name)\n+    (0..input.length - 1).each do |i|\n+      begin\n+        if op.input_arg[i].is_ref and input[i].ref","path":"lib/tensorflow/graph.rb","position":19,"original_position":19,"commit_id":"cad84dc135b4bbcc0dc4e1f14f6d5ad31ccf5cd3","original_commit_id":"cad84dc135b4bbcc0dc4e1f14f6d5ad31ccf5cd3","user":{"login":"Arafatk","id":11155207,"avatar_url":"https://avatars.githubusercontent.com/u/11155207?v=3","gravatar_id":"","url":"https://api.github.com/users/Arafatk","html_url":"https://github.com/Arafatk","followers_url":"https://api.github.com/users/Arafatk/followers","following_url":"https://api.github.com/users/Arafatk/following{/other_user}","gists_url":"https://api.github.com/users/Arafatk/gists{/gist_id}","starred_url":"https://api.github.com/users/Arafatk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arafatk/subscriptions","organizations_url":"https://api.github.com/users/Arafatk/orgs","repos_url":"https://api.github.com/users/Arafatk/repos","events_url":"https://api.github.com/users/Arafatk/events{/privacy}","received_events_url":"https://api.github.com/users/Arafatk/received_events","type":"User","site_admin":false},"body":"@zverok Thanks \r\n","created_at":"2016-07-26T15:27:02Z","updated_at":"2016-07-26T15:27:02Z","html_url":"https://github.com/Arafatk/tensorflow.rb/pull/32#discussion_r72272959","pull_request_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/Arafatk/tensorflow.rb/pulls/comments/72272959"},"html":{"href":"https://github.com/Arafatk/tensorflow.rb/pull/32#discussion_r72272959"},"pull_request":{"href":"https://api.github.com/repos/Arafatk/tensorflow.rb/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/Arafatk/tensorflow.rb/pulls/32","id":78608663,"html_url":"https://github.com/Arafatk/tensorflow.rb/pull/32","diff_url":"https://github.com/Arafatk/tensorflow.rb/pull/32.diff","patch_url":"https://github.com/Arafatk/tensorflow.rb/pull/32.patch","issue_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/issues/32","number":32,"state":"open","locked":false,"title":"[WIP] Adding Constant and Variable","user":{"login":"Arafatk","id":11155207,"avatar_url":"https://avatars.githubusercontent.com/u/11155207?v=3","gravatar_id":"","url":"https://api.github.com/users/Arafatk","html_url":"https://github.com/Arafatk","followers_url":"https://api.github.com/users/Arafatk/followers","following_url":"https://api.github.com/users/Arafatk/following{/other_user}","gists_url":"https://api.github.com/users/Arafatk/gists{/gist_id}","starred_url":"https://api.github.com/users/Arafatk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arafatk/subscriptions","organizations_url":"https://api.github.com/users/Arafatk/orgs","repos_url":"https://api.github.com/users/Arafatk/repos","events_url":"https://api.github.com/users/Arafatk/events{/privacy}","received_events_url":"https://api.github.com/users/Arafatk/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-24T20:23:56Z","updated_at":"2016-07-26T15:27:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8d36bf5eebc51a5cc6f34226ea06d34fe8933603","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Arafatk/tensorflow.rb/milestones/1","html_url":"https://github.com/Arafatk/tensorflow.rb/milestones/0.1.0","labels_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/milestones/1/labels","id":1900438,"number":1,"title":"0.1.0","description":"Get the tensorflow ruby gem working with absolute basic features that:\r\n\r\n- Is simple to install and runs stable on Linux on Mac OSX (e.g. )\r\n- Is [well tested](https://travis-ci.org/Arafatk/tensorflow.rb) (e.g. above 90% coverage)\r\n- Has good [code quality](https://codeclimate.com/github/Arafatk/tensorflow.rb) (e.g. above 3.5)\r\n- Allows the user to go through TensorFlow's [Basic Usage Tutorial](https://www.tensorflow.org/versions/r0.9/get_started/basic_usage.html#basic-usage) (not necessarily support for GPU)","creator":{"login":"chrhansen","id":1741737,"avatar_url":"https://avatars.githubusercontent.com/u/1741737?v=3","gravatar_id":"","url":"https://api.github.com/users/chrhansen","html_url":"https://github.com/chrhansen","followers_url":"https://api.github.com/users/chrhansen/followers","following_url":"https://api.github.com/users/chrhansen/following{/other_user}","gists_url":"https://api.github.com/users/chrhansen/gists{/gist_id}","starred_url":"https://api.github.com/users/chrhansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrhansen/subscriptions","organizations_url":"https://api.github.com/users/chrhansen/orgs","repos_url":"https://api.github.com/users/chrhansen/repos","events_url":"https://api.github.com/users/chrhansen/events{/privacy}","received_events_url":"https://api.github.com/users/chrhansen/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":1,"state":"open","created_at":"2016-07-23T21:25:05Z","updated_at":"2016-07-25T00:24:11Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/pulls/32/commits","review_comments_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/pulls/32/comments","review_comment_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/issues/32/comments","statuses_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/statuses/cad84dc135b4bbcc0dc4e1f14f6d5ad31ccf5cd3","head":{"label":"Arafatk:constant_and_variable","ref":"constant_and_variable","sha":"cad84dc135b4bbcc0dc4e1f14f6d5ad31ccf5cd3","user":{"login":"Arafatk","id":11155207,"avatar_url":"https://avatars.githubusercontent.com/u/11155207?v=3","gravatar_id":"","url":"https://api.github.com/users/Arafatk","html_url":"https://github.com/Arafatk","followers_url":"https://api.github.com/users/Arafatk/followers","following_url":"https://api.github.com/users/Arafatk/following{/other_user}","gists_url":"https://api.github.com/users/Arafatk/gists{/gist_id}","starred_url":"https://api.github.com/users/Arafatk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arafatk/subscriptions","organizations_url":"https://api.github.com/users/Arafatk/orgs","repos_url":"https://api.github.com/users/Arafatk/repos","events_url":"https://api.github.com/users/Arafatk/events{/privacy}","received_events_url":"https://api.github.com/users/Arafatk/received_events","type":"User","site_admin":false},"repo":{"id":61302869,"name":"tensorflow.rb","full_name":"Arafatk/tensorflow.rb","owner":{"login":"Arafatk","id":11155207,"avatar_url":"https://avatars.githubusercontent.com/u/11155207?v=3","gravatar_id":"","url":"https://api.github.com/users/Arafatk","html_url":"https://github.com/Arafatk","followers_url":"https://api.github.com/users/Arafatk/followers","following_url":"https://api.github.com/users/Arafatk/following{/other_user}","gists_url":"https://api.github.com/users/Arafatk/gists{/gist_id}","starred_url":"https://api.github.com/users/Arafatk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arafatk/subscriptions","organizations_url":"https://api.github.com/users/Arafatk/orgs","repos_url":"https://api.github.com/users/Arafatk/repos","events_url":"https://api.github.com/users/Arafatk/events{/privacy}","received_events_url":"https://api.github.com/users/Arafatk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Arafatk/tensorflow.rb","description":"","fork":false,"url":"https://api.github.com/repos/Arafatk/tensorflow.rb","forks_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/forks","keys_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/teams","hooks_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/hooks","issue_events_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/issues/events{/number}","events_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/events","assignees_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/assignees{/user}","branches_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/branches{/branch}","tags_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/tags","blobs_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/git/refs{/sha}","trees_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/statuses/{sha}","languages_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/languages","stargazers_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/stargazers","contributors_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/contributors","subscribers_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/subscribers","subscription_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/subscription","commits_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/commits{/sha}","git_commits_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/git/commits{/sha}","comments_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/comments{/number}","issue_comment_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/issues/comments{/number}","contents_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/contents/{+path}","compare_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/merges","archive_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/downloads","issues_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/issues{/number}","pulls_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/pulls{/number}","milestones_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/milestones{/number}","notifications_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/labels{/name}","releases_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/releases{/id}","deployments_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/deployments","created_at":"2016-06-16T14:59:51Z","updated_at":"2016-07-26T14:59:16Z","pushed_at":"2016-07-26T14:05:41Z","git_url":"git://github.com/Arafatk/tensorflow.rb.git","ssh_url":"git@github.com:Arafatk/tensorflow.rb.git","clone_url":"https://github.com/Arafatk/tensorflow.rb.git","svn_url":"https://github.com/Arafatk/tensorflow.rb","homepage":null,"size":2395,"stargazers_count":16,"watchers_count":16,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":4,"forks":8,"open_issues":4,"watchers":16,"default_branch":"master"}},"base":{"label":"Arafatk:master","ref":"master","sha":"b7a498e187edf4f5da3e52216a4da380b8b1ff7b","user":{"login":"Arafatk","id":11155207,"avatar_url":"https://avatars.githubusercontent.com/u/11155207?v=3","gravatar_id":"","url":"https://api.github.com/users/Arafatk","html_url":"https://github.com/Arafatk","followers_url":"https://api.github.com/users/Arafatk/followers","following_url":"https://api.github.com/users/Arafatk/following{/other_user}","gists_url":"https://api.github.com/users/Arafatk/gists{/gist_id}","starred_url":"https://api.github.com/users/Arafatk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arafatk/subscriptions","organizations_url":"https://api.github.com/users/Arafatk/orgs","repos_url":"https://api.github.com/users/Arafatk/repos","events_url":"https://api.github.com/users/Arafatk/events{/privacy}","received_events_url":"https://api.github.com/users/Arafatk/received_events","type":"User","site_admin":false},"repo":{"id":61302869,"name":"tensorflow.rb","full_name":"Arafatk/tensorflow.rb","owner":{"login":"Arafatk","id":11155207,"avatar_url":"https://avatars.githubusercontent.com/u/11155207?v=3","gravatar_id":"","url":"https://api.github.com/users/Arafatk","html_url":"https://github.com/Arafatk","followers_url":"https://api.github.com/users/Arafatk/followers","following_url":"https://api.github.com/users/Arafatk/following{/other_user}","gists_url":"https://api.github.com/users/Arafatk/gists{/gist_id}","starred_url":"https://api.github.com/users/Arafatk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arafatk/subscriptions","organizations_url":"https://api.github.com/users/Arafatk/orgs","repos_url":"https://api.github.com/users/Arafatk/repos","events_url":"https://api.github.com/users/Arafatk/events{/privacy}","received_events_url":"https://api.github.com/users/Arafatk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Arafatk/tensorflow.rb","description":"","fork":false,"url":"https://api.github.com/repos/Arafatk/tensorflow.rb","forks_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/forks","keys_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/teams","hooks_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/hooks","issue_events_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/issues/events{/number}","events_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/events","assignees_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/assignees{/user}","branches_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/branches{/branch}","tags_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/tags","blobs_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/git/refs{/sha}","trees_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/statuses/{sha}","languages_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/languages","stargazers_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/stargazers","contributors_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/contributors","subscribers_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/subscribers","subscription_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/subscription","commits_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/commits{/sha}","git_commits_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/git/commits{/sha}","comments_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/comments{/number}","issue_comment_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/issues/comments{/number}","contents_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/contents/{+path}","compare_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/merges","archive_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/downloads","issues_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/issues{/number}","pulls_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/pulls{/number}","milestones_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/milestones{/number}","notifications_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/labels{/name}","releases_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/releases{/id}","deployments_url":"https://api.github.com/repos/Arafatk/tensorflow.rb/deployments","created_at":"2016-06-16T14:59:51Z","updated_at":"2016-07-26T14:59:16Z","pushed_at":"2016-07-26T14:05:41Z","git_url":"git://github.com/Arafatk/tensorflow.rb.git","ssh_url":"git@github.com:Arafatk/tensorflow.rb.git","clone_url":"https://github.com/Arafatk/tensorflow.rb.git","svn_url":"https://github.com/Arafatk/tensorflow.rb","homepage":null,"size":2395,"stargazers_count":16,"watchers_count":16,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":4,"forks":8,"open_issues":4,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Arafatk/tensorflow.rb/pulls/32"},"html":{"href":"https://github.com/Arafatk/tensorflow.rb/pull/32"},"issue":{"href":"https://api.github.com/repos/Arafatk/tensorflow.rb/issues/32"},"comments":{"href":"https://api.github.com/repos/Arafatk/tensorflow.rb/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/Arafatk/tensorflow.rb/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/Arafatk/tensorflow.rb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Arafatk/tensorflow.rb/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/Arafatk/tensorflow.rb/statuses/cad84dc135b4bbcc0dc4e1f14f6d5ad31ccf5cd3"}}}}
{"actor":{"display_login":"Arafatk"}}