{"action":"created","comment":{"url":"https://api.github.com/repos/intel-analytics/BigDL/pulls/comments/167142264","pull_request_review_id":95318363,"id":167142264,"diff_hunk":"@@ -24,6 +24,29 @@ import com.intel.analytics.bigdl.utils.Shape\n \n import scala.reflect.ClassTag\n \n+/**\n+ * Batch normalization layer (Ioffe and Szegedy, 2014).\n+ * Normalize the activations of the previous layer at each batch,\n+ * i.e. applies a transformation that maintains the mean activation\n+ * close to 0 and the activation standard deviation close to 1.\n+ * The input of this layer should be 4D.\n+ *\n+ * When you use this layer as the first layer of a model, you need to provide the argument\n+ * inputShape (a Single Shape, does not include the batch dimension).\n+ *\n+ * @param epsilon Small Double > 0. Fuzz parameter. Theano expects epsilon >= 1e-5.\n+ *                Default is 0.001.\n+ * @param momentum Double. Momentum in the computation of the exponential average\n+ *                 of the mean and standard deviation of the data,\n+ *                 for feature-wise normalization. Default is 0.99.\n+ * @param betaInit Name of initialization function for shift parameter, or alternatively,\n+ *                 Theano/TensorFlow function to use for weights initialization. Default is 'zero'.\n+ * @param gammaInit Name of initialization function for scale parameter, or alternatively,\n+ *                  Theano/TensorFlow function to use for weights initialization. Default is 'one'.\n+ * @param dimOrdering Format of input data. Either DataFormat.NCHW (dimOrdering='th') or","path":"spark/dl/src/main/scala/com/intel/analytics/bigdl/nn/keras/BatchNormalization.scala","position":23,"original_position":23,"commit_id":"14b8c1ae337b00172b4388b1edf4c26fbb7f86e1","original_commit_id":"14b8c1ae337b00172b4388b1edf4c26fbb7f86e1","user":{"login":"hkvision","id":21994046,"avatar_url":"https://avatars2.githubusercontent.com/u/21994046?v=4","gravatar_id":"","url":"https://api.github.com/users/hkvision","html_url":"https://github.com/hkvision","followers_url":"https://api.github.com/users/hkvision/followers","following_url":"https://api.github.com/users/hkvision/following{/other_user}","gists_url":"https://api.github.com/users/hkvision/gists{/gist_id}","starred_url":"https://api.github.com/users/hkvision/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hkvision/subscriptions","organizations_url":"https://api.github.com/users/hkvision/orgs","repos_url":"https://api.github.com/users/hkvision/repos","events_url":"https://api.github.com/users/hkvision/events{/privacy}","received_events_url":"https://api.github.com/users/hkvision/received_events","type":"User","site_admin":false},"body":"Add for NCHW, axis along which to normalize is 1. For NHWC, axis is 3.","created_at":"2018-02-09T05:19:06Z","updated_at":"2018-02-09T05:19:06Z","html_url":"https://github.com/intel-analytics/BigDL/pull/2286#discussion_r167142264","pull_request_url":"https://api.github.com/repos/intel-analytics/BigDL/pulls/2286","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/intel-analytics/BigDL/pulls/comments/167142264"},"html":{"href":"https://github.com/intel-analytics/BigDL/pull/2286#discussion_r167142264"},"pull_request":{"href":"https://api.github.com/repos/intel-analytics/BigDL/pulls/2286"}}},"pull_request":{"url":"https://api.github.com/repos/intel-analytics/BigDL/pulls/2286","id":167876721,"html_url":"https://github.com/intel-analytics/BigDL/pull/2286","diff_url":"https://github.com/intel-analytics/BigDL/pull/2286.diff","patch_url":"https://github.com/intel-analytics/BigDL/pull/2286.patch","issue_url":"https://api.github.com/repos/intel-analytics/BigDL/issues/2286","number":2286,"state":"open","locked":false,"title":"[WIP]documentation for keras new layers","user":{"login":"Quincy2014","id":14804184,"avatar_url":"https://avatars2.githubusercontent.com/u/14804184?v=4","gravatar_id":"","url":"https://api.github.com/users/Quincy2014","html_url":"https://github.com/Quincy2014","followers_url":"https://api.github.com/users/Quincy2014/followers","following_url":"https://api.github.com/users/Quincy2014/following{/other_user}","gists_url":"https://api.github.com/users/Quincy2014/gists{/gist_id}","starred_url":"https://api.github.com/users/Quincy2014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Quincy2014/subscriptions","organizations_url":"https://api.github.com/users/Quincy2014/orgs","repos_url":"https://api.github.com/users/Quincy2014/repos","events_url":"https://api.github.com/users/Quincy2014/events{/privacy}","received_events_url":"https://api.github.com/users/Quincy2014/received_events","type":"User","site_admin":false},"body":"## What changes were proposed in this pull request?\r\n\r\nadd documentation for each keras API new layer.","created_at":"2018-02-08T04:45:29Z","updated_at":"2018-02-09T05:19:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"35f95cd1d51d03178114677da50c7f1aedfddd70","assignee":null,"assignees":[],"requested_reviewers":[{"login":"zhichao-li","id":2662017,"avatar_url":"https://avatars3.githubusercontent.com/u/2662017?v=4","gravatar_id":"","url":"https://api.github.com/users/zhichao-li","html_url":"https://github.com/zhichao-li","followers_url":"https://api.github.com/users/zhichao-li/followers","following_url":"https://api.github.com/users/zhichao-li/following{/other_user}","gists_url":"https://api.github.com/users/zhichao-li/gists{/gist_id}","starred_url":"https://api.github.com/users/zhichao-li/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhichao-li/subscriptions","organizations_url":"https://api.github.com/users/zhichao-li/orgs","repos_url":"https://api.github.com/users/zhichao-li/repos","events_url":"https://api.github.com/users/zhichao-li/events{/privacy}","received_events_url":"https://api.github.com/users/zhichao-li/received_events","type":"User","site_admin":false}],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/intel-analytics/BigDL/pulls/2286/commits","review_comments_url":"https://api.github.com/repos/intel-analytics/BigDL/pulls/2286/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/2286/comments","statuses_url":"https://api.github.com/repos/intel-analytics/BigDL/statuses/14b8c1ae337b00172b4388b1edf4c26fbb7f86e1","head":{"label":"Quincy2014:doc2","ref":"doc2","sha":"14b8c1ae337b00172b4388b1edf4c26fbb7f86e1","user":{"login":"Quincy2014","id":14804184,"avatar_url":"https://avatars2.githubusercontent.com/u/14804184?v=4","gravatar_id":"","url":"https://api.github.com/users/Quincy2014","html_url":"https://github.com/Quincy2014","followers_url":"https://api.github.com/users/Quincy2014/followers","following_url":"https://api.github.com/users/Quincy2014/following{/other_user}","gists_url":"https://api.github.com/users/Quincy2014/gists{/gist_id}","starred_url":"https://api.github.com/users/Quincy2014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Quincy2014/subscriptions","organizations_url":"https://api.github.com/users/Quincy2014/orgs","repos_url":"https://api.github.com/users/Quincy2014/repos","events_url":"https://api.github.com/users/Quincy2014/events{/privacy}","received_events_url":"https://api.github.com/users/Quincy2014/received_events","type":"User","site_admin":false},"repo":{"id":118421208,"name":"BigDL","full_name":"Quincy2014/BigDL","owner":{"login":"Quincy2014","id":14804184,"avatar_url":"https://avatars2.githubusercontent.com/u/14804184?v=4","gravatar_id":"","url":"https://api.github.com/users/Quincy2014","html_url":"https://github.com/Quincy2014","followers_url":"https://api.github.com/users/Quincy2014/followers","following_url":"https://api.github.com/users/Quincy2014/following{/other_user}","gists_url":"https://api.github.com/users/Quincy2014/gists{/gist_id}","starred_url":"https://api.github.com/users/Quincy2014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Quincy2014/subscriptions","organizations_url":"https://api.github.com/users/Quincy2014/orgs","repos_url":"https://api.github.com/users/Quincy2014/repos","events_url":"https://api.github.com/users/Quincy2014/events{/privacy}","received_events_url":"https://api.github.com/users/Quincy2014/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Quincy2014/BigDL","description":"BigDL: Distributed Deep Learning Library for Apache Spark","fork":true,"url":"https://api.github.com/repos/Quincy2014/BigDL","forks_url":"https://api.github.com/repos/Quincy2014/BigDL/forks","keys_url":"https://api.github.com/repos/Quincy2014/BigDL/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Quincy2014/BigDL/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Quincy2014/BigDL/teams","hooks_url":"https://api.github.com/repos/Quincy2014/BigDL/hooks","issue_events_url":"https://api.github.com/repos/Quincy2014/BigDL/issues/events{/number}","events_url":"https://api.github.com/repos/Quincy2014/BigDL/events","assignees_url":"https://api.github.com/repos/Quincy2014/BigDL/assignees{/user}","branches_url":"https://api.github.com/repos/Quincy2014/BigDL/branches{/branch}","tags_url":"https://api.github.com/repos/Quincy2014/BigDL/tags","blobs_url":"https://api.github.com/repos/Quincy2014/BigDL/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Quincy2014/BigDL/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Quincy2014/BigDL/git/refs{/sha}","trees_url":"https://api.github.com/repos/Quincy2014/BigDL/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Quincy2014/BigDL/statuses/{sha}","languages_url":"https://api.github.com/repos/Quincy2014/BigDL/languages","stargazers_url":"https://api.github.com/repos/Quincy2014/BigDL/stargazers","contributors_url":"https://api.github.com/repos/Quincy2014/BigDL/contributors","subscribers_url":"https://api.github.com/repos/Quincy2014/BigDL/subscribers","subscription_url":"https://api.github.com/repos/Quincy2014/BigDL/subscription","commits_url":"https://api.github.com/repos/Quincy2014/BigDL/commits{/sha}","git_commits_url":"https://api.github.com/repos/Quincy2014/BigDL/git/commits{/sha}","comments_url":"https://api.github.com/repos/Quincy2014/BigDL/comments{/number}","issue_comment_url":"https://api.github.com/repos/Quincy2014/BigDL/issues/comments{/number}","contents_url":"https://api.github.com/repos/Quincy2014/BigDL/contents/{+path}","compare_url":"https://api.github.com/repos/Quincy2014/BigDL/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Quincy2014/BigDL/merges","archive_url":"https://api.github.com/repos/Quincy2014/BigDL/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Quincy2014/BigDL/downloads","issues_url":"https://api.github.com/repos/Quincy2014/BigDL/issues{/number}","pulls_url":"https://api.github.com/repos/Quincy2014/BigDL/pulls{/number}","milestones_url":"https://api.github.com/repos/Quincy2014/BigDL/milestones{/number}","notifications_url":"https://api.github.com/repos/Quincy2014/BigDL/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Quincy2014/BigDL/labels{/name}","releases_url":"https://api.github.com/repos/Quincy2014/BigDL/releases{/id}","deployments_url":"https://api.github.com/repos/Quincy2014/BigDL/deployments","created_at":"2018-01-22T07:22:16Z","updated_at":"2018-01-22T07:22:21Z","pushed_at":"2018-02-09T03:24:28Z","git_url":"git://github.com/Quincy2014/BigDL.git","ssh_url":"git@github.com:Quincy2014/BigDL.git","clone_url":"https://github.com/Quincy2014/BigDL.git","svn_url":"https://github.com/Quincy2014/BigDL","homepage":"https://bigdl-project.github.io/","size":18736,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"intel-analytics:master","ref":"master","sha":"cd8db3375b4285da98e8bac4e250808f2dc6dc83","user":{"login":"intel-analytics","id":10941215,"avatar_url":"https://avatars3.githubusercontent.com/u/10941215?v=4","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://avatars3.githubusercontent.com/u/10941215?v=4","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":"2018-02-09T00:43:15Z","pushed_at":"2018-02-09T05:04:52Z","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":"https://bigdl-project.github.io/","size":18667,"stargazers_count":2272,"watchers_count":2272,"language":"Scala","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":499,"mirror_url":null,"archived":false,"open_issues_count":149,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":499,"open_issues":149,"watchers":2272,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/intel-analytics/BigDL/pulls/2286"},"html":{"href":"https://github.com/intel-analytics/BigDL/pull/2286"},"issue":{"href":"https://api.github.com/repos/intel-analytics/BigDL/issues/2286"},"comments":{"href":"https://api.github.com/repos/intel-analytics/BigDL/issues/2286/comments"},"review_comments":{"href":"https://api.github.com/repos/intel-analytics/BigDL/pulls/2286/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/2286/commits"},"statuses":{"href":"https://api.github.com/repos/intel-analytics/BigDL/statuses/14b8c1ae337b00172b4388b1edf4c26fbb7f86e1"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"hkvision"}}