{"action":"created","comment":{"url":"https://api.github.com/repos/intel-analytics/BigDL/pulls/comments/97253463","pull_request_review_id":17856702,"id":97253463,"diff_hunk":"@@ -36,8 +51,8 @@ class Reshape[@specialized(Float, Double) T: ClassTag](\n \n   override def updateOutput(input: Tensor[T]): Tensor[T] = {\n \n-    if ((batchMode.nonEmpty && batchMode.get == false) ||\n-      (input.nElement() == nElement && batchMode.isEmpty && input.size(1) != 1)) {\n+    if (batchMode.nonEmpty && !batchMode.get ||","path":"dl/src/main/scala/com/intel/analytics/bigdl/nn/Reshape.scala","position":28,"original_position":28,"commit_id":"37b2a15bc6db26d9cf1b90eac246bdb0fcac53b3","original_commit_id":"37b2a15bc6db26d9cf1b90eac246bdb0fcac53b3","user":{"login":"yiheng","id":1297418,"avatar_url":"https://avatars.githubusercontent.com/u/1297418?v=3","gravatar_id":"","url":"https://api.github.com/users/yiheng","html_url":"https://github.com/yiheng","followers_url":"https://api.github.com/users/yiheng/followers","following_url":"https://api.github.com/users/yiheng/following{/other_user}","gists_url":"https://api.github.com/users/yiheng/gists{/gist_id}","starred_url":"https://api.github.com/users/yiheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiheng/subscriptions","organizations_url":"https://api.github.com/users/yiheng/orgs","repos_url":"https://api.github.com/users/yiheng/repos","events_url":"https://api.github.com/users/yiheng/events{/privacy}","received_events_url":"https://api.github.com/users/yiheng/received_events","type":"User","site_admin":false},"body":"I prefer readable","created_at":"2017-01-23T05:05:03Z","updated_at":"2017-01-23T05:05:03Z","html_url":"https://github.com/intel-analytics/BigDL/pull/407#discussion_r97253463","pull_request_url":"https://api.github.com/repos/intel-analytics/BigDL/pulls/407","_links":{"self":{"href":"https://api.github.com/repos/intel-analytics/BigDL/pulls/comments/97253463"},"html":{"href":"https://github.com/intel-analytics/BigDL/pull/407#discussion_r97253463"},"pull_request":{"href":"https://api.github.com/repos/intel-analytics/BigDL/pulls/407"}}},"pull_request":{"url":"https://api.github.com/repos/intel-analytics/BigDL/pulls/407","id":102650376,"html_url":"https://github.com/intel-analytics/BigDL/pull/407","diff_url":"https://github.com/intel-analytics/BigDL/pull/407.diff","patch_url":"https://github.com/intel-analytics/BigDL/pull/407.patch","issue_url":"https://api.github.com/repos/intel-analytics/BigDL/issues/407","number":407,"state":"open","locked":false,"title":"[Issue 393] Add better documentation for Linear, Cosine, PairwiseDistance, Reshap…","user":{"login":"psyyz10","id":7493169,"avatar_url":"https://avatars.githubusercontent.com/u/7493169?v=3","gravatar_id":"","url":"https://api.github.com/users/psyyz10","html_url":"https://github.com/psyyz10","followers_url":"https://api.github.com/users/psyyz10/followers","following_url":"https://api.github.com/users/psyyz10/following{/other_user}","gists_url":"https://api.github.com/users/psyyz10/gists{/gist_id}","starred_url":"https://api.github.com/users/psyyz10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psyyz10/subscriptions","organizations_url":"https://api.github.com/users/psyyz10/orgs","repos_url":"https://api.github.com/users/psyyz10/repos","events_url":"https://api.github.com/users/psyyz10/events{/privacy}","received_events_url":"https://api.github.com/users/psyyz10/received_events","type":"User","site_admin":false},"body":"…e and InitializationMethod","created_at":"2017-01-23T02:47:59Z","updated_at":"2017-01-23T05:05:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b01826a4ebfdb44ec9b8f10fd30c51ec010f5642","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/intel-analytics/BigDL/pulls/407/commits","review_comments_url":"https://api.github.com/repos/intel-analytics/BigDL/pulls/407/comments","review_comment_url":"https://api.github.com/repos/intel-analytics/BigDL/pulls/comments{/number}","comments_url":"https://api.github.com/repos/intel-analytics/BigDL/issues/407/comments","statuses_url":"https://api.github.com/repos/intel-analytics/BigDL/statuses/37b2a15bc6db26d9cf1b90eac246bdb0fcac53b3","head":{"label":"psyyz10:issue393","ref":"issue393","sha":"37b2a15bc6db26d9cf1b90eac246bdb0fcac53b3","user":{"login":"psyyz10","id":7493169,"avatar_url":"https://avatars.githubusercontent.com/u/7493169?v=3","gravatar_id":"","url":"https://api.github.com/users/psyyz10","html_url":"https://github.com/psyyz10","followers_url":"https://api.github.com/users/psyyz10/followers","following_url":"https://api.github.com/users/psyyz10/following{/other_user}","gists_url":"https://api.github.com/users/psyyz10/gists{/gist_id}","starred_url":"https://api.github.com/users/psyyz10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psyyz10/subscriptions","organizations_url":"https://api.github.com/users/psyyz10/orgs","repos_url":"https://api.github.com/users/psyyz10/repos","events_url":"https://api.github.com/users/psyyz10/events{/privacy}","received_events_url":"https://api.github.com/users/psyyz10/received_events","type":"User","site_admin":false},"repo":{"id":77892892,"name":"BigDL-1","full_name":"psyyz10/BigDL-1","owner":{"login":"psyyz10","id":7493169,"avatar_url":"https://avatars.githubusercontent.com/u/7493169?v=3","gravatar_id":"","url":"https://api.github.com/users/psyyz10","html_url":"https://github.com/psyyz10","followers_url":"https://api.github.com/users/psyyz10/followers","following_url":"https://api.github.com/users/psyyz10/following{/other_user}","gists_url":"https://api.github.com/users/psyyz10/gists{/gist_id}","starred_url":"https://api.github.com/users/psyyz10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psyyz10/subscriptions","organizations_url":"https://api.github.com/users/psyyz10/orgs","repos_url":"https://api.github.com/users/psyyz10/repos","events_url":"https://api.github.com/users/psyyz10/events{/privacy}","received_events_url":"https://api.github.com/users/psyyz10/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/psyyz10/BigDL-1","description":"BigDL: Distributed Deep learning Library for Apache Spark. I played as a main contributor of this high star project.","fork":true,"url":"https://api.github.com/repos/psyyz10/BigDL-1","forks_url":"https://api.github.com/repos/psyyz10/BigDL-1/forks","keys_url":"https://api.github.com/repos/psyyz10/BigDL-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/psyyz10/BigDL-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/psyyz10/BigDL-1/teams","hooks_url":"https://api.github.com/repos/psyyz10/BigDL-1/hooks","issue_events_url":"https://api.github.com/repos/psyyz10/BigDL-1/issues/events{/number}","events_url":"https://api.github.com/repos/psyyz10/BigDL-1/events","assignees_url":"https://api.github.com/repos/psyyz10/BigDL-1/assignees{/user}","branches_url":"https://api.github.com/repos/psyyz10/BigDL-1/branches{/branch}","tags_url":"https://api.github.com/repos/psyyz10/BigDL-1/tags","blobs_url":"https://api.github.com/repos/psyyz10/BigDL-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/psyyz10/BigDL-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/psyyz10/BigDL-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/psyyz10/BigDL-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/psyyz10/BigDL-1/statuses/{sha}","languages_url":"https://api.github.com/repos/psyyz10/BigDL-1/languages","stargazers_url":"https://api.github.com/repos/psyyz10/BigDL-1/stargazers","contributors_url":"https://api.github.com/repos/psyyz10/BigDL-1/contributors","subscribers_url":"https://api.github.com/repos/psyyz10/BigDL-1/subscribers","subscription_url":"https://api.github.com/repos/psyyz10/BigDL-1/subscription","commits_url":"https://api.github.com/repos/psyyz10/BigDL-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/psyyz10/BigDL-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/psyyz10/BigDL-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/psyyz10/BigDL-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/psyyz10/BigDL-1/contents/{+path}","compare_url":"https://api.github.com/repos/psyyz10/BigDL-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/psyyz10/BigDL-1/merges","archive_url":"https://api.github.com/repos/psyyz10/BigDL-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/psyyz10/BigDL-1/downloads","issues_url":"https://api.github.com/repos/psyyz10/BigDL-1/issues{/number}","pulls_url":"https://api.github.com/repos/psyyz10/BigDL-1/pulls{/number}","milestones_url":"https://api.github.com/repos/psyyz10/BigDL-1/milestones{/number}","notifications_url":"https://api.github.com/repos/psyyz10/BigDL-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/psyyz10/BigDL-1/labels{/name}","releases_url":"https://api.github.com/repos/psyyz10/BigDL-1/releases{/id}","deployments_url":"https://api.github.com/repos/psyyz10/BigDL-1/deployments","created_at":"2017-01-03T07:11:15Z","updated_at":"2017-01-06T03:39:36Z","pushed_at":"2017-01-23T03:00:20Z","git_url":"git://github.com/psyyz10/BigDL-1.git","ssh_url":"git@github.com:psyyz10/BigDL-1.git","clone_url":"https://github.com/psyyz10/BigDL-1.git","svn_url":"https://github.com/psyyz10/BigDL-1","homepage":"","size":8716,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"intel-analytics:master","ref":"master","sha":"36b899640a6e92b54766529e5d4148e404d5c8b6","user":{"login":"intel-analytics","id":10941215,"avatar_url":"https://avatars.githubusercontent.com/u/10941215?v=3","gravatar_id":"","url":"https://api.github.com/users/intel-analytics","html_url":"https://github.com/intel-analytics","followers_url":"https://api.github.com/users/intel-analytics/followers","following_url":"https://api.github.com/users/intel-analytics/following{/other_user}","gists_url":"https://api.github.com/users/intel-analytics/gists{/gist_id}","starred_url":"https://api.github.com/users/intel-analytics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intel-analytics/subscriptions","organizations_url":"https://api.github.com/users/intel-analytics/orgs","repos_url":"https://api.github.com/users/intel-analytics/repos","events_url":"https://api.github.com/users/intel-analytics/events{/privacy}","received_events_url":"https://api.github.com/users/intel-analytics/received_events","type":"Organization","site_admin":false},"repo":{"id":66823715,"name":"BigDL","full_name":"intel-analytics/BigDL","owner":{"login":"intel-analytics","id":10941215,"avatar_url":"https://avatars.githubusercontent.com/u/10941215?v=3","gravatar_id":"","url":"https://api.github.com/users/intel-analytics","html_url":"https://github.com/intel-analytics","followers_url":"https://api.github.com/users/intel-analytics/followers","following_url":"https://api.github.com/users/intel-analytics/following{/other_user}","gists_url":"https://api.github.com/users/intel-analytics/gists{/gist_id}","starred_url":"https://api.github.com/users/intel-analytics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intel-analytics/subscriptions","organizations_url":"https://api.github.com/users/intel-analytics/orgs","repos_url":"https://api.github.com/users/intel-analytics/repos","events_url":"https://api.github.com/users/intel-analytics/events{/privacy}","received_events_url":"https://api.github.com/users/intel-analytics/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/intel-analytics/BigDL","description":"BigDL: Distributed Deep Learning Library for Apache Spark","fork":false,"url":"https://api.github.com/repos/intel-analytics/BigDL","forks_url":"https://api.github.com/repos/intel-analytics/BigDL/forks","keys_url":"https://api.github.com/repos/intel-analytics/BigDL/keys{/key_id}","collaborators_url":"https://api.github.com/repos/intel-analytics/BigDL/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/intel-analytics/BigDL/teams","hooks_url":"https://api.github.com/repos/intel-analytics/BigDL/hooks","issue_events_url":"https://api.github.com/repos/intel-analytics/BigDL/issues/events{/number}","events_url":"https://api.github.com/repos/intel-analytics/BigDL/events","assignees_url":"https://api.github.com/repos/intel-analytics/BigDL/assignees{/user}","branches_url":"https://api.github.com/repos/intel-analytics/BigDL/branches{/branch}","tags_url":"https://api.github.com/repos/intel-analytics/BigDL/tags","blobs_url":"https://api.github.com/repos/intel-analytics/BigDL/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/intel-analytics/BigDL/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/intel-analytics/BigDL/git/refs{/sha}","trees_url":"https://api.github.com/repos/intel-analytics/BigDL/git/trees{/sha}","statuses_url":"https://api.github.com/repos/intel-analytics/BigDL/statuses/{sha}","languages_url":"https://api.github.com/repos/intel-analytics/BigDL/languages","stargazers_url":"https://api.github.com/repos/intel-analytics/BigDL/stargazers","contributors_url":"https://api.github.com/repos/intel-analytics/BigDL/contributors","subscribers_url":"https://api.github.com/repos/intel-analytics/BigDL/subscribers","subscription_url":"https://api.github.com/repos/intel-analytics/BigDL/subscription","commits_url":"https://api.github.com/repos/intel-analytics/BigDL/commits{/sha}","git_commits_url":"https://api.github.com/repos/intel-analytics/BigDL/git/commits{/sha}","comments_url":"https://api.github.com/repos/intel-analytics/BigDL/comments{/number}","issue_comment_url":"https://api.github.com/repos/intel-analytics/BigDL/issues/comments{/number}","contents_url":"https://api.github.com/repos/intel-analytics/BigDL/contents/{+path}","compare_url":"https://api.github.com/repos/intel-analytics/BigDL/compare/{base}...{head}","merges_url":"https://api.github.com/repos/intel-analytics/BigDL/merges","archive_url":"https://api.github.com/repos/intel-analytics/BigDL/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/intel-analytics/BigDL/downloads","issues_url":"https://api.github.com/repos/intel-analytics/BigDL/issues{/number}","pulls_url":"https://api.github.com/repos/intel-analytics/BigDL/pulls{/number}","milestones_url":"https://api.github.com/repos/intel-analytics/BigDL/milestones{/number}","notifications_url":"https://api.github.com/repos/intel-analytics/BigDL/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/intel-analytics/BigDL/labels{/name}","releases_url":"https://api.github.com/repos/intel-analytics/BigDL/releases{/id}","deployments_url":"https://api.github.com/repos/intel-analytics/BigDL/deployments","created_at":"2016-08-29T07:59:50Z","updated_at":"2017-01-23T04:56:56Z","pushed_at":"2017-01-23T03:07:26Z","git_url":"git://github.com/intel-analytics/BigDL.git","ssh_url":"git@github.com:intel-analytics/BigDL.git","clone_url":"https://github.com/intel-analytics/BigDL.git","svn_url":"https://github.com/intel-analytics/BigDL","homepage":"","size":8884,"stargazers_count":1204,"watchers_count":1204,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":184,"mirror_url":null,"open_issues_count":61,"forks":184,"open_issues":61,"watchers":1204,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/intel-analytics/BigDL/pulls/407"},"html":{"href":"https://github.com/intel-analytics/BigDL/pull/407"},"issue":{"href":"https://api.github.com/repos/intel-analytics/BigDL/issues/407"},"comments":{"href":"https://api.github.com/repos/intel-analytics/BigDL/issues/407/comments"},"review_comments":{"href":"https://api.github.com/repos/intel-analytics/BigDL/pulls/407/comments"},"review_comment":{"href":"https://api.github.com/repos/intel-analytics/BigDL/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/intel-analytics/BigDL/pulls/407/commits"},"statuses":{"href":"https://api.github.com/repos/intel-analytics/BigDL/statuses/37b2a15bc6db26d9cf1b90eac246bdb0fcac53b3"}}}}
{"actor":{"display_login":"yiheng"}}