{"action":"created","comment":{"url":"https://api.github.com/repos/pytorch/pytorch/pulls/comments/218576068","pull_request_review_id":156545187,"id":218576068,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxODU3NjA2OA==","diff_hunk":"@@ -752,6 +757,9 @@ def parse_kwargs(desc):\n         Non-empty tensors provided must have the same shape, except in the\n         cat dimension.\n     dim (int, optional): the dimension over which the tensors are concatenated\n+        pad_value (float, optional): The value is used in paddings to expand","path":"torch/_torch_docs.py","position":24,"original_position":24,"commit_id":"1b5bc9022927e486cba3b8d5bcd85de7d87b7e18","original_commit_id":"1b5bc9022927e486cba3b8d5bcd85de7d87b7e18","user":{"login":"gchanan","id":3768583,"node_id":"MDQ6VXNlcjM3Njg1ODM=","avatar_url":"https://avatars2.githubusercontent.com/u/3768583?v=4","gravatar_id":"","url":"https://api.github.com/users/gchanan","html_url":"https://github.com/gchanan","followers_url":"https://api.github.com/users/gchanan/followers","following_url":"https://api.github.com/users/gchanan/following{/other_user}","gists_url":"https://api.github.com/users/gchanan/gists{/gist_id}","starred_url":"https://api.github.com/users/gchanan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gchanan/subscriptions","organizations_url":"https://api.github.com/users/gchanan/orgs","repos_url":"https://api.github.com/users/gchanan/repos","events_url":"https://api.github.com/users/gchanan/events{/privacy}","received_events_url":"https://api.github.com/users/gchanan/received_events","type":"User","site_admin":false},"body":"As mentioned above, `scalar` instead of `float` seems good.\r\n\r\nA couple of nits: \"padding\" instead of \"paddings\"\r\n\"explanation\" instead of \"introduction\"\r\n\r\nOtherwise, this looks good!","created_at":"2018-09-18T20:07:18Z","updated_at":"2018-09-18T20:51:24Z","html_url":"https://github.com/pytorch/pytorch/pull/11494#discussion_r218576068","pull_request_url":"https://api.github.com/repos/pytorch/pytorch/pulls/11494","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/comments/218576068"},"html":{"href":"https://github.com/pytorch/pytorch/pull/11494#discussion_r218576068"},"pull_request":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/11494"}}},"pull_request":{"url":"https://api.github.com/repos/pytorch/pytorch/pulls/11494","id":214476805,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE0NDc2ODA1","html_url":"https://github.com/pytorch/pytorch/pull/11494","diff_url":"https://github.com/pytorch/pytorch/pull/11494.diff","patch_url":"https://github.com/pytorch/pytorch/pull/11494.patch","issue_url":"https://api.github.com/repos/pytorch/pytorch/issues/11494","number":11494,"state":"open","locked":false,"title":"Add padding as an option to torch.cat","user":{"login":"yya007","id":11239571,"node_id":"MDQ6VXNlcjExMjM5NTcx","avatar_url":"https://avatars3.githubusercontent.com/u/11239571?v=4","gravatar_id":"","url":"https://api.github.com/users/yya007","html_url":"https://github.com/yya007","followers_url":"https://api.github.com/users/yya007/followers","following_url":"https://api.github.com/users/yya007/following{/other_user}","gists_url":"https://api.github.com/users/yya007/gists{/gist_id}","starred_url":"https://api.github.com/users/yya007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yya007/subscriptions","organizations_url":"https://api.github.com/users/yya007/orgs","repos_url":"https://api.github.com/users/yya007/repos","events_url":"https://api.github.com/users/yya007/events{/privacy}","received_events_url":"https://api.github.com/users/yya007/received_events","type":"User","site_admin":false},"body":"It is an updated version of PR #11252 including solving merge conflict.\r\n\r\nThis PR is let torch.cat support padding.\r\n\r\nExample:\r\n\r\nx = torch.ones(2, 3)\r\ny = torch.zeros(1, 4)\r\ntorch.cat([x, y], dim=0, pad_value=0.5)\r\n\r\ntensor([[1., 1., 1., 0.5],\r\n[1., 1., 1., 0.5],\r\n[0., 0., 0., 0.]])\r\n\r\nSee T33342447","created_at":"2018-09-10T23:59:48Z","updated_at":"2018-09-18T20:51:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2a896f13534b7084ed017196ed05f3f778bd4058","assignee":null,"assignees":[],"requested_reviewers":[{"login":"ezyang","id":13564,"node_id":"MDQ6VXNlcjEzNTY0","avatar_url":"https://avatars0.githubusercontent.com/u/13564?v=4","gravatar_id":"","url":"https://api.github.com/users/ezyang","html_url":"https://github.com/ezyang","followers_url":"https://api.github.com/users/ezyang/followers","following_url":"https://api.github.com/users/ezyang/following{/other_user}","gists_url":"https://api.github.com/users/ezyang/gists{/gist_id}","starred_url":"https://api.github.com/users/ezyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezyang/subscriptions","organizations_url":"https://api.github.com/users/ezyang/orgs","repos_url":"https://api.github.com/users/ezyang/repos","events_url":"https://api.github.com/users/ezyang/events{/privacy}","received_events_url":"https://api.github.com/users/ezyang/received_events","type":"User","site_admin":false},{"login":"zdevito","id":370202,"node_id":"MDQ6VXNlcjM3MDIwMg==","avatar_url":"https://avatars0.githubusercontent.com/u/370202?v=4","gravatar_id":"","url":"https://api.github.com/users/zdevito","html_url":"https://github.com/zdevito","followers_url":"https://api.github.com/users/zdevito/followers","following_url":"https://api.github.com/users/zdevito/following{/other_user}","gists_url":"https://api.github.com/users/zdevito/gists{/gist_id}","starred_url":"https://api.github.com/users/zdevito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zdevito/subscriptions","organizations_url":"https://api.github.com/users/zdevito/orgs","repos_url":"https://api.github.com/users/zdevito/repos","events_url":"https://api.github.com/users/zdevito/events{/privacy}","received_events_url":"https://api.github.com/users/zdevito/received_events","type":"User","site_admin":false},{"login":"colesbury","id":655866,"node_id":"MDQ6VXNlcjY1NTg2Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/655866?v=4","gravatar_id":"","url":"https://api.github.com/users/colesbury","html_url":"https://github.com/colesbury","followers_url":"https://api.github.com/users/colesbury/followers","following_url":"https://api.github.com/users/colesbury/following{/other_user}","gists_url":"https://api.github.com/users/colesbury/gists{/gist_id}","starred_url":"https://api.github.com/users/colesbury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colesbury/subscriptions","organizations_url":"https://api.github.com/users/colesbury/orgs","repos_url":"https://api.github.com/users/colesbury/repos","events_url":"https://api.github.com/users/colesbury/events{/privacy}","received_events_url":"https://api.github.com/users/colesbury/received_events","type":"User","site_admin":false},{"login":"soumith","id":1310570,"node_id":"MDQ6VXNlcjEzMTA1NzA=","avatar_url":"https://avatars0.githubusercontent.com/u/1310570?v=4","gravatar_id":"","url":"https://api.github.com/users/soumith","html_url":"https://github.com/soumith","followers_url":"https://api.github.com/users/soumith/followers","following_url":"https://api.github.com/users/soumith/following{/other_user}","gists_url":"https://api.github.com/users/soumith/gists{/gist_id}","starred_url":"https://api.github.com/users/soumith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soumith/subscriptions","organizations_url":"https://api.github.com/users/soumith/orgs","repos_url":"https://api.github.com/users/soumith/repos","events_url":"https://api.github.com/users/soumith/events{/privacy}","received_events_url":"https://api.github.com/users/soumith/received_events","type":"User","site_admin":false},{"login":"apaszke","id":4583066,"node_id":"MDQ6VXNlcjQ1ODMwNjY=","avatar_url":"https://avatars3.githubusercontent.com/u/4583066?v=4","gravatar_id":"","url":"https://api.github.com/users/apaszke","html_url":"https://github.com/apaszke","followers_url":"https://api.github.com/users/apaszke/followers","following_url":"https://api.github.com/users/apaszke/following{/other_user}","gists_url":"https://api.github.com/users/apaszke/gists{/gist_id}","starred_url":"https://api.github.com/users/apaszke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apaszke/subscriptions","organizations_url":"https://api.github.com/users/apaszke/orgs","repos_url":"https://api.github.com/users/apaszke/repos","events_url":"https://api.github.com/users/apaszke/events{/privacy}","received_events_url":"https://api.github.com/users/apaszke/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":679953983,"node_id":"MDU6TGFiZWw2Nzk5NTM5ODM=","url":"https://api.github.com/repos/pytorch/pytorch/labels/jit","name":"jit","color":"c5def5","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/pytorch/pytorch/pulls/11494/commits","review_comments_url":"https://api.github.com/repos/pytorch/pytorch/pulls/11494/comments","review_comment_url":"https://api.github.com/repos/pytorch/pytorch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pytorch/pytorch/issues/11494/comments","statuses_url":"https://api.github.com/repos/pytorch/pytorch/statuses/1b5bc9022927e486cba3b8d5bcd85de7d87b7e18","head":{"label":"yya007:myfeature2","ref":"myfeature2","sha":"1b5bc9022927e486cba3b8d5bcd85de7d87b7e18","user":{"login":"yya007","id":11239571,"node_id":"MDQ6VXNlcjExMjM5NTcx","avatar_url":"https://avatars3.githubusercontent.com/u/11239571?v=4","gravatar_id":"","url":"https://api.github.com/users/yya007","html_url":"https://github.com/yya007","followers_url":"https://api.github.com/users/yya007/followers","following_url":"https://api.github.com/users/yya007/following{/other_user}","gists_url":"https://api.github.com/users/yya007/gists{/gist_id}","starred_url":"https://api.github.com/users/yya007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yya007/subscriptions","organizations_url":"https://api.github.com/users/yya007/orgs","repos_url":"https://api.github.com/users/yya007/repos","events_url":"https://api.github.com/users/yya007/events{/privacy}","received_events_url":"https://api.github.com/users/yya007/received_events","type":"User","site_admin":false},"repo":{"id":145044568,"node_id":"MDEwOlJlcG9zaXRvcnkxNDUwNDQ1Njg=","name":"pytorch","full_name":"yya007/pytorch","private":false,"owner":{"login":"yya007","id":11239571,"node_id":"MDQ6VXNlcjExMjM5NTcx","avatar_url":"https://avatars3.githubusercontent.com/u/11239571?v=4","gravatar_id":"","url":"https://api.github.com/users/yya007","html_url":"https://github.com/yya007","followers_url":"https://api.github.com/users/yya007/followers","following_url":"https://api.github.com/users/yya007/following{/other_user}","gists_url":"https://api.github.com/users/yya007/gists{/gist_id}","starred_url":"https://api.github.com/users/yya007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yya007/subscriptions","organizations_url":"https://api.github.com/users/yya007/orgs","repos_url":"https://api.github.com/users/yya007/repos","events_url":"https://api.github.com/users/yya007/events{/privacy}","received_events_url":"https://api.github.com/users/yya007/received_events","type":"User","site_admin":false},"html_url":"https://github.com/yya007/pytorch","description":"Tensors and Dynamic neural networks in Python  with strong GPU acceleration","fork":true,"url":"https://api.github.com/repos/yya007/pytorch","forks_url":"https://api.github.com/repos/yya007/pytorch/forks","keys_url":"https://api.github.com/repos/yya007/pytorch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yya007/pytorch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yya007/pytorch/teams","hooks_url":"https://api.github.com/repos/yya007/pytorch/hooks","issue_events_url":"https://api.github.com/repos/yya007/pytorch/issues/events{/number}","events_url":"https://api.github.com/repos/yya007/pytorch/events","assignees_url":"https://api.github.com/repos/yya007/pytorch/assignees{/user}","branches_url":"https://api.github.com/repos/yya007/pytorch/branches{/branch}","tags_url":"https://api.github.com/repos/yya007/pytorch/tags","blobs_url":"https://api.github.com/repos/yya007/pytorch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yya007/pytorch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yya007/pytorch/git/refs{/sha}","trees_url":"https://api.github.com/repos/yya007/pytorch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yya007/pytorch/statuses/{sha}","languages_url":"https://api.github.com/repos/yya007/pytorch/languages","stargazers_url":"https://api.github.com/repos/yya007/pytorch/stargazers","contributors_url":"https://api.github.com/repos/yya007/pytorch/contributors","subscribers_url":"https://api.github.com/repos/yya007/pytorch/subscribers","subscription_url":"https://api.github.com/repos/yya007/pytorch/subscription","commits_url":"https://api.github.com/repos/yya007/pytorch/commits{/sha}","git_commits_url":"https://api.github.com/repos/yya007/pytorch/git/commits{/sha}","comments_url":"https://api.github.com/repos/yya007/pytorch/comments{/number}","issue_comment_url":"https://api.github.com/repos/yya007/pytorch/issues/comments{/number}","contents_url":"https://api.github.com/repos/yya007/pytorch/contents/{+path}","compare_url":"https://api.github.com/repos/yya007/pytorch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yya007/pytorch/merges","archive_url":"https://api.github.com/repos/yya007/pytorch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yya007/pytorch/downloads","issues_url":"https://api.github.com/repos/yya007/pytorch/issues{/number}","pulls_url":"https://api.github.com/repos/yya007/pytorch/pulls{/number}","milestones_url":"https://api.github.com/repos/yya007/pytorch/milestones{/number}","notifications_url":"https://api.github.com/repos/yya007/pytorch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yya007/pytorch/labels{/name}","releases_url":"https://api.github.com/repos/yya007/pytorch/releases{/id}","deployments_url":"https://api.github.com/repos/yya007/pytorch/deployments","created_at":"2018-08-16T22:21:07Z","updated_at":"2018-09-04T22:58:16Z","pushed_at":"2018-09-18T18:10:52Z","git_url":"git://github.com/yya007/pytorch.git","ssh_url":"git@github.com:yya007/pytorch.git","clone_url":"https://github.com/yya007/pytorch.git","svn_url":"https://github.com/yya007/pytorch","homepage":"http://pytorch.org","size":74657,"stargazers_count":0,"watchers_count":0,"language":"C++","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":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pytorch:master","ref":"master","sha":"540ef9b1fc5506369a48491af8a285a686689b36","user":{"login":"pytorch","id":21003710,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxMDAzNzEw","avatar_url":"https://avatars3.githubusercontent.com/u/21003710?v=4","gravatar_id":"","url":"https://api.github.com/users/pytorch","html_url":"https://github.com/pytorch","followers_url":"https://api.github.com/users/pytorch/followers","following_url":"https://api.github.com/users/pytorch/following{/other_user}","gists_url":"https://api.github.com/users/pytorch/gists{/gist_id}","starred_url":"https://api.github.com/users/pytorch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pytorch/subscriptions","organizations_url":"https://api.github.com/users/pytorch/orgs","repos_url":"https://api.github.com/users/pytorch/repos","events_url":"https://api.github.com/users/pytorch/events{/privacy}","received_events_url":"https://api.github.com/users/pytorch/received_events","type":"Organization","site_admin":false},"repo":{"id":65600975,"node_id":"MDEwOlJlcG9zaXRvcnk2NTYwMDk3NQ==","name":"pytorch","full_name":"pytorch/pytorch","private":false,"owner":{"login":"pytorch","id":21003710,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxMDAzNzEw","avatar_url":"https://avatars3.githubusercontent.com/u/21003710?v=4","gravatar_id":"","url":"https://api.github.com/users/pytorch","html_url":"https://github.com/pytorch","followers_url":"https://api.github.com/users/pytorch/followers","following_url":"https://api.github.com/users/pytorch/following{/other_user}","gists_url":"https://api.github.com/users/pytorch/gists{/gist_id}","starred_url":"https://api.github.com/users/pytorch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pytorch/subscriptions","organizations_url":"https://api.github.com/users/pytorch/orgs","repos_url":"https://api.github.com/users/pytorch/repos","events_url":"https://api.github.com/users/pytorch/events{/privacy}","received_events_url":"https://api.github.com/users/pytorch/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/pytorch/pytorch","description":"Tensors and Dynamic neural networks in Python  with strong GPU acceleration","fork":false,"url":"https://api.github.com/repos/pytorch/pytorch","forks_url":"https://api.github.com/repos/pytorch/pytorch/forks","keys_url":"https://api.github.com/repos/pytorch/pytorch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pytorch/pytorch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pytorch/pytorch/teams","hooks_url":"https://api.github.com/repos/pytorch/pytorch/hooks","issue_events_url":"https://api.github.com/repos/pytorch/pytorch/issues/events{/number}","events_url":"https://api.github.com/repos/pytorch/pytorch/events","assignees_url":"https://api.github.com/repos/pytorch/pytorch/assignees{/user}","branches_url":"https://api.github.com/repos/pytorch/pytorch/branches{/branch}","tags_url":"https://api.github.com/repos/pytorch/pytorch/tags","blobs_url":"https://api.github.com/repos/pytorch/pytorch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pytorch/pytorch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pytorch/pytorch/git/refs{/sha}","trees_url":"https://api.github.com/repos/pytorch/pytorch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pytorch/pytorch/statuses/{sha}","languages_url":"https://api.github.com/repos/pytorch/pytorch/languages","stargazers_url":"https://api.github.com/repos/pytorch/pytorch/stargazers","contributors_url":"https://api.github.com/repos/pytorch/pytorch/contributors","subscribers_url":"https://api.github.com/repos/pytorch/pytorch/subscribers","subscription_url":"https://api.github.com/repos/pytorch/pytorch/subscription","commits_url":"https://api.github.com/repos/pytorch/pytorch/commits{/sha}","git_commits_url":"https://api.github.com/repos/pytorch/pytorch/git/commits{/sha}","comments_url":"https://api.github.com/repos/pytorch/pytorch/comments{/number}","issue_comment_url":"https://api.github.com/repos/pytorch/pytorch/issues/comments{/number}","contents_url":"https://api.github.com/repos/pytorch/pytorch/contents/{+path}","compare_url":"https://api.github.com/repos/pytorch/pytorch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pytorch/pytorch/merges","archive_url":"https://api.github.com/repos/pytorch/pytorch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pytorch/pytorch/downloads","issues_url":"https://api.github.com/repos/pytorch/pytorch/issues{/number}","pulls_url":"https://api.github.com/repos/pytorch/pytorch/pulls{/number}","milestones_url":"https://api.github.com/repos/pytorch/pytorch/milestones{/number}","notifications_url":"https://api.github.com/repos/pytorch/pytorch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pytorch/pytorch/labels{/name}","releases_url":"https://api.github.com/repos/pytorch/pytorch/releases{/id}","deployments_url":"https://api.github.com/repos/pytorch/pytorch/deployments","created_at":"2016-08-13T05:26:41Z","updated_at":"2018-09-18T20:19:54Z","pushed_at":"2018-09-18T20:50:41Z","git_url":"git://github.com/pytorch/pytorch.git","ssh_url":"git@github.com:pytorch/pytorch.git","clone_url":"https://github.com/pytorch/pytorch.git","svn_url":"https://github.com/pytorch/pytorch","homepage":"http://pytorch.org","size":75305,"stargazers_count":18774,"watchers_count":18774,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4492,"mirror_url":null,"archived":false,"open_issues_count":1748,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":4492,"open_issues":1748,"watchers":18774,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/11494"},"html":{"href":"https://github.com/pytorch/pytorch/pull/11494"},"issue":{"href":"https://api.github.com/repos/pytorch/pytorch/issues/11494"},"comments":{"href":"https://api.github.com/repos/pytorch/pytorch/issues/11494/comments"},"review_comments":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/11494/comments"},"review_comment":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/11494/commits"},"statuses":{"href":"https://api.github.com/repos/pytorch/pytorch/statuses/1b5bc9022927e486cba3b8d5bcd85de7d87b7e18"}},"author_association":"NONE"}}
{"actor":{"display_login":"gchanan"}}