Skip to content

Instantly share code, notes, and snippets.

@z-a-f
Last active September 9, 2021 07:39
Show Gist options
  • Save z-a-f/9e3fdd7f03829b08dc60b468e4fa143e to your computer and use it in GitHub Desktop.
Save z-a-f/9e3fdd7f03829b08dc60b468e4fa143e to your computer and use it in GitHub Desktop.
[ghstack]
github_url = github.com
github_oauth = ghp_<...>
github_username = z-a-f
version: 0.5.0
command: /home/zafar/miniconda3/envs/pytorch-dev/bin/ghstack --force
status: b7101e436 "[sparsity] Add m-out-of-n support in the WeightNormSparsifier"
config_path = /home/zafar/.ghstackrc
conf = Config(proxy=None, github_oauth='<GITHUB_OAUTH>', github_username='z-a-f', circle_token=None, fbsource_path='/home/zafar/local/fbsource', github_path='/home/zafar/local/ghstack-pytorch', default_project_dir='fbcode/caffe2', github_url='github.com', remote_name='origin')
$ git remote get-url origin
Using selector: EpollSelector
https://github.com/pytorch/pytorch
# POST https://api.github.com/graphql
Request GraphQL query:
query ($owner: String!, $name: String!) {
repository(name: $name, owner: $owner) {
id
isFork
defaultBranchRef {
name
}
}
}
Request GraphQL variables:
{
"owner": "pytorch",
"name": "pytorch"
}
Starting new HTTPS connection (1): api.github.com:443
https://api.github.com:443 "POST /graphql HTTP/1.1" 200 None
Response status: 200
Response JSON:
{
"data": {
"repository": {
"id": "MDEwOlJlcG9zaXRvcnk2NTYwMDk3NQ==",
"isFork": false,
"defaultBranchRef": {
"name": "master"
}
}
}
}
$ git fetch --prune origin
$ git merge-base origin/master HEAD
7205ca02107059443bddd14322d2b9ed8562c60b
$ git rev-list --header '^7205ca02107059443bddd14322d2b9ed8562c60b' HEAD
b7101e4364c0485daa7a9039fbe5d9fb43eb9cbe
tree f6e446dcf38d83d2dc411bb922be8aaf3f13a5a8
parent 976ab907f2282c11a91f7e795658b623c3047eac
author Zafar <[email protected]> 1631172429 -0700
committer Zafar <[email protected]> 1631172429 -0700
[sparsity] Add m-out-of-n support in the WeightNormSparsifier
The m-out-of-n is implemented as follows:
1. Compute the blocks that need to be sparsified using the weight-norm criterion
2. Within each block below the threshold find the smallest absolute value elements
3. Zero out only the smallest values within each block
m-out-of-n describes sparsification scheme where in a block with "n" elements, only "m" of them would be zeroed-out.
Block sparsity, with the whole block being all zeros, is a special case of m-out-n: If m==n, the whole block is reset.
This echoes the implementation described in the https://github.com/pytorch/pytorch/issues/59835,
as well as meets the support of the nVidia cusparselt requirements.
To support the CUDA sparsity (2/4), one would need to set the sparsity_level to 1.0.
That translates to all blocks of shape 1x4 within a tensor will sprasify with 2-out-4 scheme.
ghstack-source-id: f6e446dcf38d83d2dc411bb922be8aaf3f13a5a8
Pull Request resolved: https://github.com/pytorch/pytorch/pull/62809
\0976ab907f2282c11a91f7e795658b623c3047eac
tree b6458d605608c3472d7a6515aa61b924ad31910e
parent 7e1966843465f571f0c792952d67b99f58d0d672
author Zafar <[email protected]> 1631172428 -0700
committer Zafar <[email protected]> 1631172428 -0700
[sparsity][doc] Docstring for WeightNormSparsifier
This adds the docstring documentation to the WeightNormSparsifier and adds the typehints for the constructor args.
Note, this does not require testing as only the doc is changed.
ghstack-source-id: b6458d605608c3472d7a6515aa61b924ad31910e
Pull Request resolved: https://github.com/pytorch/pytorch/pull/62808
\07e1966843465f571f0c792952d67b99f58d0d672
tree 03d1f39515e5aca41d0fe504aa9256372a2e84ca
parent afce4afe4087cdcc1e42b5db0f22815f53d41f9e
author Zafar <[email protected]> 1631172428 -0700
committer Zafar <[email protected]> 1631172428 -0700
[sparsity] Fix for accumulation bug in WeightNormSparsifier
This fixes a bug in the WeightNormSparsifier, where the mask is being multiplied by the newly computed mask.
Because the mask elements are binary 0/1, this accumulates the mask over every iteration, eventually collapsing the mask to zero.
This bug accidentally bled through from old versions.
ghstack-source-id: 03d1f39515e5aca41d0fe504aa9256372a2e84ca
Pull Request resolved: https://github.com/pytorch/pytorch/pull/62807
\0afce4afe4087cdcc1e42b5db0f22815f53d41f9e
tree 52d5216591b9b891a1370423623694bba45674d1
parent 7205ca02107059443bddd14322d2b9ed8562c60b
author Zafar <[email protected]> 1631172428 -0700
committer Zafar <[email protected]> 1631172428 -0700
[sparsity] Remove the pack_param from the sparsifier state_dict
That was the original design, that we decided to simplify by removing the packing in the sparsifier.
The state of the sparsifier is saved directly, and the old behavior accidentally bled through to the current version.
This change removes the `_pack_params` method, and changes the state_dict to include the state directly.
We don't have to change the load_state_dict, as it will work with either the old or the new format.
ghstack-source-id: 52d5216591b9b891a1370423623694bba45674d1
Pull Request resolved: https://github.com/pytorch/pytorch/pull/62806
\0
$ git rev-list --header '^7205ca02107059443bddd14322d2b9ed8562c60b^@' 7205ca02107059443bddd14322d2b9ed8562c60b
7205ca02107059443bddd14322d2b9ed8562c60b
tree a4a4aac806eecea115bb964cc262f83eea590635
parent ba8c1fc64854b2c6b3c76244bd228d9e2c6f5682
author Sameer Deshmukh <[email protected]> 1631115601 -0700
committer Facebook GitHub Bot <[email protected]> 1631115669 -0700
Change MaxUnpool to accept tensors with 0-dim batch sizes. (#64082)
Summary:
Part of the fix for https://github.com/pytorch/pytorch/issues/38115.
Changes the `MaxUnpool` module to work with 0-dimensions batch sizes.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/64082
Reviewed By: mrshenli
Differential Revision: D30793907
Pulled By: jbschlosser
fbshipit-source-id: d21aa665be5aa18f592b39ef7b4e3cbc632e21ed
\0
# POST https://api.github.com/graphql
Request GraphQL query:
query ($repo_id: ID!, $number: Int!) {
node(id: $repo_id) {
... on Repository {
pullRequest(number: $number) {
body
title
closed
headRefName
}
}
}
}
Request GraphQL variables:
{
"repo_id": "MDEwOlJlcG9zaXRvcnk2NTYwMDk3NQ==",
"number": 62806
}
Starting new HTTPS connection (1): api.github.com:443
https://api.github.com:443 "POST /graphql HTTP/1.1" 200 None
Response status: 200
Response JSON:
{
"data": {
"node": {
"pullRequest": {
"body": "Stack from [ghstack](https://github.com/ezyang/ghstack):\n* #62809\n* #62808\n* #62807\n* __->__ #62806\n\nThat was the original design, that we decided to simplify by removing the packing in the sparsifier.\nThe state of the sparsifier is saved directly, and the old behavior accidentally bled through to the current version.\nThis change removes the `_pack_params` method, and changes the state_dict to include the state directly.\nWe don't have to change the load_state_dict, as it will work with either the old or the new format.",
"title": "[sparsity] Remove the pack_param from the sparsifier state_dict",
"closed": false,
"headRefName": "gh/z-a-f/114/head"
}
}
}
}
$ git rev-list --max-count=1 --header origin/gh/z-a-f/114/orig
fcc7c4e5b65bec2df8121681f2e2156ca1cec155
tree 5258a3cdd80250076b0949dd4f6ed84f47f5584d
parent a749180e4ed0b1840e08fb0ce580091fe70d8901
author Zafar <[email protected]> 1628155033 -0700
committer Zafar <[email protected]> 1628155033 -0700
[sparsity] Remove the pack_param from the sparsifier state_dict
That was the original design, that we decided to simplify by removing the packing in the sparsifier.
The state of the sparsifier is saved directly, and the old behavior accidentally bled through to the current version.
This change removes the `_pack_params` method, and changes the state_dict to include the state directly.
We don't have to change the load_state_dict, as it will work with either the old or the new format.
ghstack-source-id: 5258a3cdd80250076b0949dd4f6ed84f47f5584d
Pull Request resolved: https://github.com/pytorch/pytorch/pull/62806
\0
Pushing to #62806
$ git rev-parse origin/gh/z-a-f/114/base
a749180e4ed0b1840e08fb0ce580091fe70d8901
$ git merge-base --is-ancestor 7205ca02107059443bddd14322d2b9ed8562c60b origin/gh/z-a-f/114/base
Exit code: 1
$ git config --get commit.gpgsign
$ git commit-tree -p origin/gh/z-a-f/114/base -p 7205ca02107059443bddd14322d2b9ed8562c60b a4a4aac806eecea115bb964cc262f83eea590635
d932ad6ee075ef0dfea7293002990d011da6ec0c
$ git rev-parse 'afce4afe4087cdcc1e42b5db0f22815f53d41f9e~^{tree}'
a4a4aac806eecea115bb964cc262f83eea590635
$ git commit-tree -p origin/gh/z-a-f/114/head -p d932ad6ee075ef0dfea7293002990d011da6ec0c 52d5216591b9b891a1370423623694bba45674d1
81e6b20aec31980337b139ea02a55674b3722577
Restacking commit on 7205ca02107059443bddd14322d2b9ed8562c60b
$ git commit-tree -p 7205ca02107059443bddd14322d2b9ed8562c60b 52d5216591b9b891a1370423623694bba45674d1
ae91793bf6d093b053c4ec27085c532b9b05103b
# POST https://api.github.com/graphql
Request GraphQL query:
query ($repo_id: ID!, $number: Int!) {
node(id: $repo_id) {
... on Repository {
pullRequest(number: $number) {
body
title
closed
headRefName
}
}
}
}
Request GraphQL variables:
{
"repo_id": "MDEwOlJlcG9zaXRvcnk2NTYwMDk3NQ==",
"number": 62807
}
Starting new HTTPS connection (1): api.github.com:443
https://api.github.com:443 "POST /graphql HTTP/1.1" 200 None
Response status: 200
Response JSON:
{
"data": {
"node": {
"pullRequest": {
"body": "Stack from [ghstack](https://github.com/ezyang/ghstack):\n* #62809\n* #62808\n* __->__ #62807\n* #62806\n\nThis fixes a bug in the WeightNormSparsifier, where the mask is being multiplied by the newly computed mask.\nBecause the mask elements are binary 0/1, this accumulates the mask over every iteration, eventually collapsing the mask to zero.\nThis bug accidentally bled through from old versions.",
"title": "[sparsity] Fix for accumulation bug in WeightNormSparsifier",
"closed": false,
"headRefName": "gh/z-a-f/115/head"
}
}
}
}
$ git rev-list --max-count=1 --header origin/gh/z-a-f/115/orig
6cdda4e0c90ca7799778a26679a7845dad483aaf
tree 2cb6626ad2d365e179950c119131a100497d6fc0
parent fcc7c4e5b65bec2df8121681f2e2156ca1cec155
author Zafar <[email protected]> 1628155043 -0700
committer Zafar <[email protected]> 1628155043 -0700
[sparsity] Fix for accumulation bug in WeightNormSparsifier
This fixes a bug in the WeightNormSparsifier, where the mask is being multiplied by the newly computed mask.
Because the mask elements are binary 0/1, this accumulates the mask over every iteration, eventually collapsing the mask to zero.
This bug accidentally bled through from old versions.
ghstack-source-id: 2cb6626ad2d365e179950c119131a100497d6fc0
Pull Request resolved: https://github.com/pytorch/pytorch/pull/62807
\0
Pushing to #62807
$ git rev-parse origin/gh/z-a-f/115/base
a26e7e5e2f967d908414a507825d307269aebb53
$ git merge-base --is-ancestor 7205ca02107059443bddd14322d2b9ed8562c60b origin/gh/z-a-f/115/base
Exit code: 1
$ git commit-tree -p origin/gh/z-a-f/115/base -p 7205ca02107059443bddd14322d2b9ed8562c60b 52d5216591b9b891a1370423623694bba45674d1
e19b20b9be35d5bfd2308e670f601dba6515253e
$ git rev-parse '7e1966843465f571f0c792952d67b99f58d0d672~^{tree}'
52d5216591b9b891a1370423623694bba45674d1
$ git commit-tree -p origin/gh/z-a-f/115/head -p e19b20b9be35d5bfd2308e670f601dba6515253e 03d1f39515e5aca41d0fe504aa9256372a2e84ca
8be63ad58ab845149db18875d5ed0dd878bd7553
Restacking commit on ae91793bf6d093b053c4ec27085c532b9b05103b
$ git commit-tree -p ae91793bf6d093b053c4ec27085c532b9b05103b 03d1f39515e5aca41d0fe504aa9256372a2e84ca
27e8ba6e7386637e3435d75a25f82f576dfd2e63
# POST https://api.github.com/graphql
Request GraphQL query:
query ($repo_id: ID!, $number: Int!) {
node(id: $repo_id) {
... on Repository {
pullRequest(number: $number) {
body
title
closed
headRefName
}
}
}
}
Request GraphQL variables:
{
"repo_id": "MDEwOlJlcG9zaXRvcnk2NTYwMDk3NQ==",
"number": 62808
}
Starting new HTTPS connection (1): api.github.com:443
https://api.github.com:443 "POST /graphql HTTP/1.1" 200 None
Response status: 200
Response JSON:
{
"data": {
"node": {
"pullRequest": {
"body": "Stack from [ghstack](https://github.com/ezyang/ghstack):\n* #62809\n* __->__ #62808\n* #62807\n* #62806\n\nThis adds the docstring documentation to the WeightNormSparsifier and adds the typehints for the constructor args.\nNote, this does not require testing as only the doc is changed.",
"title": "[sparsity][doc] Docstring for WeightNormSparsifier",
"closed": false,
"headRefName": "gh/z-a-f/116/head"
}
}
}
}
$ git rev-list --max-count=1 --header origin/gh/z-a-f/116/orig
0fe71452a758c2baf1fb98a995f907b628fe8400
tree 7a3c3bf5f73ccebe35bbfdd685fb137134c60ab4
parent 6cdda4e0c90ca7799778a26679a7845dad483aaf
author Zafar <[email protected]> 1628155055 -0700
committer Zafar <[email protected]> 1628155055 -0700
[sparsity][doc] Docstring for WeightNormSparsifier
This adds the docstring documentation to the WeightNormSparsifier and adds the typehints for the constructor args.
Note, this does not require testing as only the doc is changed.
ghstack-source-id: 7a3c3bf5f73ccebe35bbfdd685fb137134c60ab4
Pull Request resolved: https://github.com/pytorch/pytorch/pull/62808
\0
Pushing to #62808
$ git rev-parse origin/gh/z-a-f/116/base
1408455bb1411d96f966cb25ddb02d3a18b6dcf3
$ git merge-base --is-ancestor 7205ca02107059443bddd14322d2b9ed8562c60b origin/gh/z-a-f/116/base
Exit code: 1
$ git commit-tree -p origin/gh/z-a-f/116/base -p 7205ca02107059443bddd14322d2b9ed8562c60b 03d1f39515e5aca41d0fe504aa9256372a2e84ca
69b0de74d1269cdf614ff6fede099e97f9edfea3
$ git rev-parse '976ab907f2282c11a91f7e795658b623c3047eac~^{tree}'
03d1f39515e5aca41d0fe504aa9256372a2e84ca
$ git commit-tree -p origin/gh/z-a-f/116/head -p 69b0de74d1269cdf614ff6fede099e97f9edfea3 b6458d605608c3472d7a6515aa61b924ad31910e
821b3f9d19766240d2155bfdbb18215c95799f29
Restacking commit on 27e8ba6e7386637e3435d75a25f82f576dfd2e63
$ git commit-tree -p 27e8ba6e7386637e3435d75a25f82f576dfd2e63 b6458d605608c3472d7a6515aa61b924ad31910e
14640170c41f4db0dd4c6730249dcc3bb88df470
# POST https://api.github.com/graphql
Request GraphQL query:
query ($repo_id: ID!, $number: Int!) {
node(id: $repo_id) {
... on Repository {
pullRequest(number: $number) {
body
title
closed
headRefName
}
}
}
}
Request GraphQL variables:
{
"repo_id": "MDEwOlJlcG9zaXRvcnk2NTYwMDk3NQ==",
"number": 62809
}
Starting new HTTPS connection (1): api.github.com:443
https://api.github.com:443 "POST /graphql HTTP/1.1" 200 None
Response status: 200
Response JSON:
{
"data": {
"node": {
"pullRequest": {
"body": "Stack from [ghstack](https://github.com/ezyang/ghstack):\n* __->__ #62809\n* #62808\n* #62807\n* #62806\n\nThe m-out-of-n is implemented as follows:\n\n1. Compute the blocks that need to be sparsified using the weight-norm criterion\n2. Within each block below the threshold find the smallest absolute value elements\n3. Zero out only the smallest values within each block\n\nm-out-of-n describes sparsification scheme where in a block with \"n\" elements, only \"m\" of them would be zeroed-out.\nBlock sparsity, with the whole block being all zeros, is a special case of m-out-n: If m==n, the whole block is reset.\n\nThis echoes the implementation described in the https://github.com/pytorch/pytorch/issues/59835,\nas well as meets the support of the nVidia cusparselt requirements.\nTo support the CUDA sparsity (2/4), one would need to set the sparsity_level to 1.0.\nThat translates to all blocks of shape 1x4 within a tensor will sprasify with 2-out-4 scheme.",
"title": "[sparsity] Add m-out-of-n support in the WeightNormSparsifier",
"closed": false,
"headRefName": "gh/z-a-f/117/head"
}
}
}
}
$ git rev-list --max-count=1 --header origin/gh/z-a-f/117/orig
9fe625658add1da0bc894e51d2c1e97111e922da
tree fb8f385790b00ad381dc05fc47e7b44ad05c4838
parent 0fe71452a758c2baf1fb98a995f907b628fe8400
author Zafar <[email protected]> 1628157734 -0700
committer Zafar <[email protected]> 1628157734 -0700
[sparsity] Add m-out-of-n support in the WeightNormSparsifier
The m-out-of-n is implemented as follows:
1. Compute the blocks that need to be sparsified using the weight-norm criterion
2. Within each block below the threshold find the smallest absolute value elements
3. Zero out only the smallest values within each block
m-out-of-n describes sparsification scheme where in a block with "n" elements, only "m" of them would be zeroed-out.
Block sparsity, with the whole block being all zeros, is a special case of m-out-n: If m==n, the whole block is reset.
This echoes the implementation described in the https://github.com/pytorch/pytorch/issues/59835,
as well as meets the support of the nVidia cusparselt requirements.
To support the CUDA sparsity (2/4), one would need to set the sparsity_level to 1.0.
That translates to all blocks of shape 1x4 within a tensor will sprasify with 2-out-4 scheme.
ghstack-source-id: fb8f385790b00ad381dc05fc47e7b44ad05c4838
Pull Request resolved: https://github.com/pytorch/pytorch/pull/62809
\0
Pushing to #62809
$ git rev-parse origin/gh/z-a-f/117/base
37837c2483408091e7d9f8cb078d01bf27598434
$ git merge-base --is-ancestor 7205ca02107059443bddd14322d2b9ed8562c60b origin/gh/z-a-f/117/base
Exit code: 1
$ git commit-tree -p origin/gh/z-a-f/117/base -p 7205ca02107059443bddd14322d2b9ed8562c60b b6458d605608c3472d7a6515aa61b924ad31910e
63b6a9cfe6e64019ab1b6547b20d573b3fb1062e
$ git rev-parse 'b7101e4364c0485daa7a9039fbe5d9fb43eb9cbe~^{tree}'
b6458d605608c3472d7a6515aa61b924ad31910e
$ git commit-tree -p origin/gh/z-a-f/117/head -p 63b6a9cfe6e64019ab1b6547b20d573b3fb1062e f6e446dcf38d83d2dc411bb922be8aaf3f13a5a8
097f858b7519f0d922e1d6a748916688fed314a0
Restacking commit on 14640170c41f4db0dd4c6730249dcc3bb88df470
$ git commit-tree -p 14640170c41f4db0dd4c6730249dcc3bb88df470 f6e446dcf38d83d2dc411bb922be8aaf3f13a5a8
66f4260abfc51d1903f9c6cab7c2ea36ed87f03e
$ git reset --soft 66f4260abfc51d1903f9c6cab7c2ea36ed87f03e
# Updating https://github.com/pytorch/pytorch/pull/62806
# patch https://api.github.com/repos/pytorch/pytorch/pulls/62806
Request body:
{
"body": "Stack from [ghstack](https://github.com/ezyang/ghstack):\n* #62809\n* #62808\n* #62807\n* __->__ #62806\n\nThat was the original design, that we decided to simplify by removing the packing in the sparsifier.\nThe state of the sparsifier is saved directly, and the old behavior accidentally bled through to the current version.\nThis change removes the `_pack_params` method, and changes the state_dict to include the state directly.\nWe don't have to change the load_state_dict, as it will work with either the old or the new format.",
"title": "[sparsity] Remove the pack_param from the sparsifier state_dict"
}
Starting new HTTPS connection (1): api.github.com:443
https://api.github.com:443 "PATCH /repos/pytorch/pytorch/pulls/62806 HTTP/1.1" 200 None
Response status: 200
Response JSON:
{
"url": "https://api.github.com/repos/pytorch/pytorch/pulls/62806",
"id": 704527361,
"node_id": "MDExOlB1bGxSZXF1ZXN0NzA0NTI3MzYx",
"html_url": "https://github.com/pytorch/pytorch/pull/62806",
"diff_url": "https://github.com/pytorch/pytorch/pull/62806.diff",
"patch_url": "https://github.com/pytorch/pytorch/pull/62806.patch",
"issue_url": "https://api.github.com/repos/pytorch/pytorch/issues/62806",
"number": 62806,
"state": "open",
"locked": false,
"title": "[sparsity] Remove the pack_param from the sparsifier state_dict",
"user": {
"login": "z-a-f",
"id": 4216323,
"node_id": "MDQ6VXNlcjQyMTYzMjM=",
"avatar_url": "https://avatars.githubusercontent.com/u/4216323?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/z-a-f",
"html_url": "https://github.com/z-a-f",
"followers_url": "https://api.github.com/users/z-a-f/followers",
"following_url": "https://api.github.com/users/z-a-f/following{/other_user}",
"gists_url": "https://api.github.com/users/z-a-f/gists{/gist_id}",
"starred_url": "https://api.github.com/users/z-a-f/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/z-a-f/subscriptions",
"organizations_url": "https://api.github.com/users/z-a-f/orgs",
"repos_url": "https://api.github.com/users/z-a-f/repos",
"events_url": "https://api.github.com/users/z-a-f/events{/privacy}",
"received_events_url": "https://api.github.com/users/z-a-f/received_events",
"type": "User",
"site_admin": false
},
"body": "Stack from [ghstack](https://github.com/ezyang/ghstack):\n* #62809\n* #62808\n* #62807\n* __->__ #62806\n\nThat was the original design, that we decided to simplify by removing the packing in the sparsifier.\nThe state of the sparsifier is saved directly, and the old behavior accidentally bled through to the current version.\nThis change removes the `_pack_params` method, and changes the state_dict to include the state directly.\nWe don't have to change the load_state_dict, as it will work with either the old or the new format.",
"created_at": "2021-08-05T09:17:12Z",
"updated_at": "2021-09-09T07:32:59Z",
"closed_at": null,
"merged_at": null,
"merge_commit_sha": "fe64bbc10d5e33b87d1a92d810820b4e3516e1b2",
"assignee": null,
"assignees": [],
"requested_reviewers": [],
"requested_teams": [],
"labels": [
{
"id": 2467928730,
"node_id": "MDU6TGFiZWwyNDY3OTI4NzMw",
"url": "https://api.github.com/repos/pytorch/pytorch/labels/cla%20signed",
"name": "cla signed",
"color": "ededed",
"default": false,
"description": null
}
],
"milestone": null,
"draft": false,
"commits_url": "https://api.github.com/repos/pytorch/pytorch/pulls/62806/commits",
"review_comments_url": "https://api.github.com/repos/pytorch/pytorch/pulls/62806/comments",
"review_comment_url": "https://api.github.com/repos/pytorch/pytorch/pulls/comments{/number}",
"comments_url": "https://api.github.com/repos/pytorch/pytorch/issues/62806/comments",
"statuses_url": "https://api.github.com/repos/pytorch/pytorch/statuses/a26e7e5e2f967d908414a507825d307269aebb53",
"head": {
"label": "pytorch:gh/z-a-f/114/head",
"ref": "gh/z-a-f/114/head",
"sha": "a26e7e5e2f967d908414a507825d307269aebb53",
"user": {
"login": "pytorch",
"id": 21003710,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjIxMDAzNzEw",
"avatar_url": "https://avatars.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://avatars.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": "2021-09-09T07:19:30Z",
"pushed_at": "2021-09-09T07:21:49Z",
"git_url": "git://github.com/pytorch/pytorch.git",
"ssh_url": "[email protected]:pytorch/pytorch.git",
"clone_url": "https://github.com/pytorch/pytorch.git",
"svn_url": "https://github.com/pytorch/pytorch",
"homepage": "https://pytorch.org",
"size": 591978,
"stargazers_count": 50699,
"watchers_count": 50699,
"language": "C++",
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"forks_count": 13835,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 9791,
"license": {
"key": "other",
"name": "Other",
"spdx_id": "NOASSERTION",
"url": null,
"node_id": "MDc6TGljZW5zZTA="
},
"forks": 13835,
"open_issues": 9791,
"watchers": 50699,
"default_branch": "master"
}
},
"base": {
"label": "pytorch:gh/z-a-f/114/base",
"ref": "gh/z-a-f/114/base",
"sha": "a749180e4ed0b1840e08fb0ce580091fe70d8901",
"user": {
"login": "pytorch",
"id": 21003710,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjIxMDAzNzEw",
"avatar_url": "https://avatars.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://avatars.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": "2021-09-09T07:19:30Z",
"pushed_at": "2021-09-09T07:21:49Z",
"git_url": "git://github.com/pytorch/pytorch.git",
"ssh_url": "[email protected]:pytorch/pytorch.git",
"clone_url": "https://github.com/pytorch/pytorch.git",
"svn_url": "https://github.com/pytorch/pytorch",
"homepage": "https://pytorch.org",
"size": 591978,
"stargazers_count": 50699,
"watchers_count": 50699,
"language": "C++",
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"forks_count": 13835,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 9791,
"license": {
"key": "other",
"name": "Other",
"spdx_id": "NOASSERTION",
"url": null,
"node_id": "MDc6TGljZW5zZTA="
},
"forks": 13835,
"open_issues": 9791,
"watchers": 50699,
"default_branch": "master"
}
},
"_links": {
"self": {
"href": "https://api.github.com/repos/pytorch/pytorch/pulls/62806"
},
"html": {
"href": "https://github.com/pytorch/pytorch/pull/62806"
},
"issue": {
"href": "https://api.github.com/repos/pytorch/pytorch/issues/62806"
},
"comments": {
"href": "https://api.github.com/repos/pytorch/pytorch/issues/62806/comments"
},
"review_comments": {
"href": "https://api.github.com/repos/pytorch/pytorch/pulls/62806/comments"
},
"review_comment": {
"href": "https://api.github.com/repos/pytorch/pytorch/pulls/comments{/number}"
},
"commits": {
"href": "https://api.github.com/repos/pytorch/pytorch/pulls/62806/commits"
},
"statuses": {
"href": "https://api.github.com/repos/pytorch/pytorch/statuses/a26e7e5e2f967d908414a507825d307269aebb53"
}
},
"author_association": "MEMBER",
"auto_merge": null,
"active_lock_reason": null,
"merged": false,
"mergeable": true,
"rebaseable": true,
"mergeable_state": "unstable",
"merged_by": null,
"comments": 1,
"review_comments": 0,
"maintainer_can_modify": false,
"commits": 1,
"additions": 1,
"deletions": 23,
"changed_files": 1
}
# Updating https://github.com/pytorch/pytorch/pull/62807
# patch https://api.github.com/repos/pytorch/pytorch/pulls/62807
Request body:
{
"body": "Stack from [ghstack](https://github.com/ezyang/ghstack):\n* #62809\n* #62808\n* __->__ #62807\n* #62806\n\nThis fixes a bug in the WeightNormSparsifier, where the mask is being multiplied by the newly computed mask.\nBecause the mask elements are binary 0/1, this accumulates the mask over every iteration, eventually collapsing the mask to zero.\nThis bug accidentally bled through from old versions.",
"title": "[sparsity] Fix for accumulation bug in WeightNormSparsifier"
}
Starting new HTTPS connection (1): api.github.com:443
https://api.github.com:443 "PATCH /repos/pytorch/pytorch/pulls/62807 HTTP/1.1" 200 None
Response status: 200
Response JSON:
{
"url": "https://api.github.com/repos/pytorch/pytorch/pulls/62807",
"id": 704527528,
"node_id": "MDExOlB1bGxSZXF1ZXN0NzA0NTI3NTI4",
"html_url": "https://github.com/pytorch/pytorch/pull/62807",
"diff_url": "https://github.com/pytorch/pytorch/pull/62807.diff",
"patch_url": "https://github.com/pytorch/pytorch/pull/62807.patch",
"issue_url": "https://api.github.com/repos/pytorch/pytorch/issues/62807",
"number": 62807,
"state": "open",
"locked": false,
"title": "[sparsity] Fix for accumulation bug in WeightNormSparsifier",
"user": {
"login": "z-a-f",
"id": 4216323,
"node_id": "MDQ6VXNlcjQyMTYzMjM=",
"avatar_url": "https://avatars.githubusercontent.com/u/4216323?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/z-a-f",
"html_url": "https://github.com/z-a-f",
"followers_url": "https://api.github.com/users/z-a-f/followers",
"following_url": "https://api.github.com/users/z-a-f/following{/other_user}",
"gists_url": "https://api.github.com/users/z-a-f/gists{/gist_id}",
"starred_url": "https://api.github.com/users/z-a-f/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/z-a-f/subscriptions",
"organizations_url": "https://api.github.com/users/z-a-f/orgs",
"repos_url": "https://api.github.com/users/z-a-f/repos",
"events_url": "https://api.github.com/users/z-a-f/events{/privacy}",
"received_events_url": "https://api.github.com/users/z-a-f/received_events",
"type": "User",
"site_admin": false
},
"body": "Stack from [ghstack](https://github.com/ezyang/ghstack):\n* #62809\n* #62808\n* __->__ #62807\n* #62806\n\nThis fixes a bug in the WeightNormSparsifier, where the mask is being multiplied by the newly computed mask.\nBecause the mask elements are binary 0/1, this accumulates the mask over every iteration, eventually collapsing the mask to zero.\nThis bug accidentally bled through from old versions.",
"created_at": "2021-08-05T09:17:23Z",
"updated_at": "2021-09-09T07:33:00Z",
"closed_at": null,
"merged_at": null,
"merge_commit_sha": "0ba5cde90d692af75879b3ca3cf7fd187cdee4ee",
"assignee": null,
"assignees": [],
"requested_reviewers": [],
"requested_teams": [],
"labels": [
{
"id": 2467928730,
"node_id": "MDU6TGFiZWwyNDY3OTI4NzMw",
"url": "https://api.github.com/repos/pytorch/pytorch/labels/cla%20signed",
"name": "cla signed",
"color": "ededed",
"default": false,
"description": null
}
],
"milestone": null,
"draft": false,
"commits_url": "https://api.github.com/repos/pytorch/pytorch/pulls/62807/commits",
"review_comments_url": "https://api.github.com/repos/pytorch/pytorch/pulls/62807/comments",
"review_comment_url": "https://api.github.com/repos/pytorch/pytorch/pulls/comments{/number}",
"comments_url": "https://api.github.com/repos/pytorch/pytorch/issues/62807/comments",
"statuses_url": "https://api.github.com/repos/pytorch/pytorch/statuses/1408455bb1411d96f966cb25ddb02d3a18b6dcf3",
"head": {
"label": "pytorch:gh/z-a-f/115/head",
"ref": "gh/z-a-f/115/head",
"sha": "1408455bb1411d96f966cb25ddb02d3a18b6dcf3",
"user": {
"login": "pytorch",
"id": 21003710,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjIxMDAzNzEw",
"avatar_url": "https://avatars.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://avatars.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": "2021-09-09T07:19:30Z",
"pushed_at": "2021-09-09T07:21:49Z",
"git_url": "git://github.com/pytorch/pytorch.git",
"ssh_url": "[email protected]:pytorch/pytorch.git",
"clone_url": "https://github.com/pytorch/pytorch.git",
"svn_url": "https://github.com/pytorch/pytorch",
"homepage": "https://pytorch.org",
"size": 591978,
"stargazers_count": 50699,
"watchers_count": 50699,
"language": "C++",
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"forks_count": 13835,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 9791,
"license": {
"key": "other",
"name": "Other",
"spdx_id": "NOASSERTION",
"url": null,
"node_id": "MDc6TGljZW5zZTA="
},
"forks": 13835,
"open_issues": 9791,
"watchers": 50699,
"default_branch": "master"
}
},
"base": {
"label": "pytorch:gh/z-a-f/115/base",
"ref": "gh/z-a-f/115/base",
"sha": "a26e7e5e2f967d908414a507825d307269aebb53",
"user": {
"login": "pytorch",
"id": 21003710,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjIxMDAzNzEw",
"avatar_url": "https://avatars.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://avatars.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": "2021-09-09T07:19:30Z",
"pushed_at": "2021-09-09T07:21:49Z",
"git_url": "git://github.com/pytorch/pytorch.git",
"ssh_url": "[email protected]:pytorch/pytorch.git",
"clone_url": "https://github.com/pytorch/pytorch.git",
"svn_url": "https://github.com/pytorch/pytorch",
"homepage": "https://pytorch.org",
"size": 591978,
"stargazers_count": 50699,
"watchers_count": 50699,
"language": "C++",
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"forks_count": 13835,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 9791,
"license": {
"key": "other",
"name": "Other",
"spdx_id": "NOASSERTION",
"url": null,
"node_id": "MDc6TGljZW5zZTA="
},
"forks": 13835,
"open_issues": 9791,
"watchers": 50699,
"default_branch": "master"
}
},
"_links": {
"self": {
"href": "https://api.github.com/repos/pytorch/pytorch/pulls/62807"
},
"html": {
"href": "https://github.com/pytorch/pytorch/pull/62807"
},
"issue": {
"href": "https://api.github.com/repos/pytorch/pytorch/issues/62807"
},
"comments": {
"href": "https://api.github.com/repos/pytorch/pytorch/issues/62807/comments"
},
"review_comments": {
"href": "https://api.github.com/repos/pytorch/pytorch/pulls/62807/comments"
},
"review_comment": {
"href": "https://api.github.com/repos/pytorch/pytorch/pulls/comments{/number}"
},
"commits": {
"href": "https://api.github.com/repos/pytorch/pytorch/pulls/62807/commits"
},
"statuses": {
"href": "https://api.github.com/repos/pytorch/pytorch/statuses/1408455bb1411d96f966cb25ddb02d3a18b6dcf3"
}
},
"author_association": "MEMBER",
"auto_merge": null,
"active_lock_reason": null,
"merged": false,
"mergeable": true,
"rebaseable": true,
"mergeable_state": "unstable",
"merged_by": null,
"comments": 1,
"review_comments": 0,
"maintainer_can_modify": false,
"commits": 1,
"additions": 10,
"deletions": 1,
"changed_files": 2
}
# Updating https://github.com/pytorch/pytorch/pull/62808
# patch https://api.github.com/repos/pytorch/pytorch/pulls/62808
Request body:
{
"body": "Stack from [ghstack](https://github.com/ezyang/ghstack):\n* #62809\n* __->__ #62808\n* #62807\n* #62806\n\nThis adds the docstring documentation to the WeightNormSparsifier and adds the typehints for the constructor args.\nNote, this does not require testing as only the doc is changed.",
"title": "[sparsity][doc] Docstring for WeightNormSparsifier"
}
Starting new HTTPS connection (1): api.github.com:443
https://api.github.com:443 "PATCH /repos/pytorch/pytorch/pulls/62808 HTTP/1.1" 200 None
Response status: 200
Response JSON:
{
"url": "https://api.github.com/repos/pytorch/pytorch/pulls/62808",
"id": 704527720,
"node_id": "MDExOlB1bGxSZXF1ZXN0NzA0NTI3NzIw",
"html_url": "https://github.com/pytorch/pytorch/pull/62808",
"diff_url": "https://github.com/pytorch/pytorch/pull/62808.diff",
"patch_url": "https://github.com/pytorch/pytorch/pull/62808.patch",
"issue_url": "https://api.github.com/repos/pytorch/pytorch/issues/62808",
"number": 62808,
"state": "open",
"locked": false,
"title": "[sparsity][doc] Docstring for WeightNormSparsifier",
"user": {
"login": "z-a-f",
"id": 4216323,
"node_id": "MDQ6VXNlcjQyMTYzMjM=",
"avatar_url": "https://avatars.githubusercontent.com/u/4216323?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/z-a-f",
"html_url": "https://github.com/z-a-f",
"followers_url": "https://api.github.com/users/z-a-f/followers",
"following_url": "https://api.github.com/users/z-a-f/following{/other_user}",
"gists_url": "https://api.github.com/users/z-a-f/gists{/gist_id}",
"starred_url": "https://api.github.com/users/z-a-f/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/z-a-f/subscriptions",
"organizations_url": "https://api.github.com/users/z-a-f/orgs",
"repos_url": "https://api.github.com/users/z-a-f/repos",
"events_url": "https://api.github.com/users/z-a-f/events{/privacy}",
"received_events_url": "https://api.github.com/users/z-a-f/received_events",
"type": "User",
"site_admin": false
},
"body": "Stack from [ghstack](https://github.com/ezyang/ghstack):\n* #62809\n* __->__ #62808\n* #62807\n* #62806\n\nThis adds the docstring documentation to the WeightNormSparsifier and adds the typehints for the constructor args.\nNote, this does not require testing as only the doc is changed.",
"created_at": "2021-08-05T09:17:34Z",
"updated_at": "2021-09-09T07:33:01Z",
"closed_at": null,
"merged_at": null,
"merge_commit_sha": "158ae1404ed1cadd7b6a3e704914004553ad2690",
"assignee": null,
"assignees": [],
"requested_reviewers": [],
"requested_teams": [],
"labels": [
{
"id": 2467928730,
"node_id": "MDU6TGFiZWwyNDY3OTI4NzMw",
"url": "https://api.github.com/repos/pytorch/pytorch/labels/cla%20signed",
"name": "cla signed",
"color": "ededed",
"default": false,
"description": null
}
],
"milestone": null,
"draft": false,
"commits_url": "https://api.github.com/repos/pytorch/pytorch/pulls/62808/commits",
"review_comments_url": "https://api.github.com/repos/pytorch/pytorch/pulls/62808/comments",
"review_comment_url": "https://api.github.com/repos/pytorch/pytorch/pulls/comments{/number}",
"comments_url": "https://api.github.com/repos/pytorch/pytorch/issues/62808/comments",
"statuses_url": "https://api.github.com/repos/pytorch/pytorch/statuses/37837c2483408091e7d9f8cb078d01bf27598434",
"head": {
"label": "pytorch:gh/z-a-f/116/head",
"ref": "gh/z-a-f/116/head",
"sha": "37837c2483408091e7d9f8cb078d01bf27598434",
"user": {
"login": "pytorch",
"id": 21003710,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjIxMDAzNzEw",
"avatar_url": "https://avatars.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://avatars.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": "2021-09-09T07:19:30Z",
"pushed_at": "2021-09-09T07:21:49Z",
"git_url": "git://github.com/pytorch/pytorch.git",
"ssh_url": "[email protected]:pytorch/pytorch.git",
"clone_url": "https://github.com/pytorch/pytorch.git",
"svn_url": "https://github.com/pytorch/pytorch",
"homepage": "https://pytorch.org",
"size": 591978,
"stargazers_count": 50699,
"watchers_count": 50699,
"language": "C++",
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"forks_count": 13835,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 9791,
"license": {
"key": "other",
"name": "Other",
"spdx_id": "NOASSERTION",
"url": null,
"node_id": "MDc6TGljZW5zZTA="
},
"forks": 13835,
"open_issues": 9791,
"watchers": 50699,
"default_branch": "master"
}
},
"base": {
"label": "pytorch:gh/z-a-f/116/base",
"ref": "gh/z-a-f/116/base",
"sha": "1408455bb1411d96f966cb25ddb02d3a18b6dcf3",
"user": {
"login": "pytorch",
"id": 21003710,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjIxMDAzNzEw",
"avatar_url": "https://avatars.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://avatars.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": "2021-09-09T07:19:30Z",
"pushed_at": "2021-09-09T07:21:49Z",
"git_url": "git://github.com/pytorch/pytorch.git",
"ssh_url": "[email protected]:pytorch/pytorch.git",
"clone_url": "https://github.com/pytorch/pytorch.git",
"svn_url": "https://github.com/pytorch/pytorch",
"homepage": "https://pytorch.org",
"size": 591978,
"stargazers_count": 50699,
"watchers_count": 50699,
"language": "C++",
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"forks_count": 13835,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 9791,
"license": {
"key": "other",
"name": "Other",
"spdx_id": "NOASSERTION",
"url": null,
"node_id": "MDc6TGljZW5zZTA="
},
"forks": 13835,
"open_issues": 9791,
"watchers": 50699,
"default_branch": "master"
}
},
"_links": {
"self": {
"href": "https://api.github.com/repos/pytorch/pytorch/pulls/62808"
},
"html": {
"href": "https://github.com/pytorch/pytorch/pull/62808"
},
"issue": {
"href": "https://api.github.com/repos/pytorch/pytorch/issues/62808"
},
"comments": {
"href": "https://api.github.com/repos/pytorch/pytorch/issues/62808/comments"
},
"review_comments": {
"href": "https://api.github.com/repos/pytorch/pytorch/pulls/62808/comments"
},
"review_comment": {
"href": "https://api.github.com/repos/pytorch/pytorch/pulls/comments{/number}"
},
"commits": {
"href": "https://api.github.com/repos/pytorch/pytorch/pulls/62808/commits"
},
"statuses": {
"href": "https://api.github.com/repos/pytorch/pytorch/statuses/37837c2483408091e7d9f8cb078d01bf27598434"
}
},
"author_association": "MEMBER",
"auto_merge": null,
"active_lock_reason": null,
"merged": false,
"mergeable": true,
"rebaseable": true,
"mergeable_state": "unstable",
"merged_by": null,
"comments": 1,
"review_comments": 0,
"maintainer_can_modify": false,
"commits": 1,
"additions": 30,
"deletions": 2,
"changed_files": 1
}
# Updating https://github.com/pytorch/pytorch/pull/62809
# patch https://api.github.com/repos/pytorch/pytorch/pulls/62809
Request body:
{
"body": "Stack from [ghstack](https://github.com/ezyang/ghstack):\n* __->__ #62809\n* #62808\n* #62807\n* #62806\n\nThe m-out-of-n is implemented as follows:\n\n1. Compute the blocks that need to be sparsified using the weight-norm criterion\n2. Within each block below the threshold find the smallest absolute value elements\n3. Zero out only the smallest values within each block\n\nm-out-of-n describes sparsification scheme where in a block with \"n\" elements, only \"m\" of them would be zeroed-out.\nBlock sparsity, with the whole block being all zeros, is a special case of m-out-n: If m==n, the whole block is reset.\n\nThis echoes the implementation described in the https://github.com/pytorch/pytorch/issues/59835,\nas well as meets the support of the nVidia cusparselt requirements.\nTo support the CUDA sparsity (2/4), one would need to set the sparsity_level to 1.0.\nThat translates to all blocks of shape 1x4 within a tensor will sprasify with 2-out-4 scheme.",
"title": "[sparsity] Add m-out-of-n support in the WeightNormSparsifier"
}
Starting new HTTPS connection (1): api.github.com:443
https://api.github.com:443 "PATCH /repos/pytorch/pytorch/pulls/62809 HTTP/1.1" 200 None
Response status: 200
Response JSON:
{
"url": "https://api.github.com/repos/pytorch/pytorch/pulls/62809",
"id": 704559941,
"node_id": "MDExOlB1bGxSZXF1ZXN0NzA0NTU5OTQx",
"html_url": "https://github.com/pytorch/pytorch/pull/62809",
"diff_url": "https://github.com/pytorch/pytorch/pull/62809.diff",
"patch_url": "https://github.com/pytorch/pytorch/pull/62809.patch",
"issue_url": "https://api.github.com/repos/pytorch/pytorch/issues/62809",
"number": 62809,
"state": "open",
"locked": false,
"title": "[sparsity] Add m-out-of-n support in the WeightNormSparsifier",
"user": {
"login": "z-a-f",
"id": 4216323,
"node_id": "MDQ6VXNlcjQyMTYzMjM=",
"avatar_url": "https://avatars.githubusercontent.com/u/4216323?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/z-a-f",
"html_url": "https://github.com/z-a-f",
"followers_url": "https://api.github.com/users/z-a-f/followers",
"following_url": "https://api.github.com/users/z-a-f/following{/other_user}",
"gists_url": "https://api.github.com/users/z-a-f/gists{/gist_id}",
"starred_url": "https://api.github.com/users/z-a-f/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/z-a-f/subscriptions",
"organizations_url": "https://api.github.com/users/z-a-f/orgs",
"repos_url": "https://api.github.com/users/z-a-f/repos",
"events_url": "https://api.github.com/users/z-a-f/events{/privacy}",
"received_events_url": "https://api.github.com/users/z-a-f/received_events",
"type": "User",
"site_admin": false
},
"body": "Stack from [ghstack](https://github.com/ezyang/ghstack):\n* __->__ #62809\n* #62808\n* #62807\n* #62806\n\nThe m-out-of-n is implemented as follows:\n\n1. Compute the blocks that need to be sparsified using the weight-norm criterion\n2. Within each block below the threshold find the smallest absolute value elements\n3. Zero out only the smallest values within each block\n\nm-out-of-n describes sparsification scheme where in a block with \"n\" elements, only \"m\" of them would be zeroed-out.\nBlock sparsity, with the whole block being all zeros, is a special case of m-out-n: If m==n, the whole block is reset.\n\nThis echoes the implementation described in the https://github.com/pytorch/pytorch/issues/59835,\nas well as meets the support of the nVidia cusparselt requirements.\nTo support the CUDA sparsity (2/4), one would need to set the sparsity_level to 1.0.\nThat translates to all blocks of shape 1x4 within a tensor will sprasify with 2-out-4 scheme.",
"created_at": "2021-08-05T10:02:13Z",
"updated_at": "2021-09-09T07:33:02Z",
"closed_at": null,
"merged_at": null,
"merge_commit_sha": "fa44afdea172cebe8243f2cdb4ec921819ad89c6",
"assignee": null,
"assignees": [],
"requested_reviewers": [
{
"login": "vkuzo",
"id": 1622561,
"node_id": "MDQ6VXNlcjE2MjI1NjE=",
"avatar_url": "https://avatars.githubusercontent.com/u/1622561?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/vkuzo",
"html_url": "https://github.com/vkuzo",
"followers_url": "https://api.github.com/users/vkuzo/followers",
"following_url": "https://api.github.com/users/vkuzo/following{/other_user}",
"gists_url": "https://api.github.com/users/vkuzo/gists{/gist_id}",
"starred_url": "https://api.github.com/users/vkuzo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vkuzo/subscriptions",
"organizations_url": "https://api.github.com/users/vkuzo/orgs",
"repos_url": "https://api.github.com/users/vkuzo/repos",
"events_url": "https://api.github.com/users/vkuzo/events{/privacy}",
"received_events_url": "https://api.github.com/users/vkuzo/received_events",
"type": "User",
"site_admin": false
},
{
"login": "raghuramank100",
"id": 48835916,
"node_id": "MDQ6VXNlcjQ4ODM1OTE2",
"avatar_url": "https://avatars.githubusercontent.com/u/48835916?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/raghuramank100",
"html_url": "https://github.com/raghuramank100",
"followers_url": "https://api.github.com/users/raghuramank100/followers",
"following_url": "https://api.github.com/users/raghuramank100/following{/other_user}",
"gists_url": "https://api.github.com/users/raghuramank100/gists{/gist_id}",
"starred_url": "https://api.github.com/users/raghuramank100/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/raghuramank100/subscriptions",
"organizations_url": "https://api.github.com/users/raghuramank100/orgs",
"repos_url": "https://api.github.com/users/raghuramank100/repos",
"events_url": "https://api.github.com/users/raghuramank100/events{/privacy}",
"received_events_url": "https://api.github.com/users/raghuramank100/received_events",
"type": "User",
"site_admin": false
}
],
"requested_teams": [],
"labels": [
{
"id": 2467928730,
"node_id": "MDU6TGFiZWwyNDY3OTI4NzMw",
"url": "https://api.github.com/repos/pytorch/pytorch/labels/cla%20signed",
"name": "cla signed",
"color": "ededed",
"default": false,
"description": null
}
],
"milestone": null,
"draft": false,
"commits_url": "https://api.github.com/repos/pytorch/pytorch/pulls/62809/commits",
"review_comments_url": "https://api.github.com/repos/pytorch/pytorch/pulls/62809/comments",
"review_comment_url": "https://api.github.com/repos/pytorch/pytorch/pulls/comments{/number}",
"comments_url": "https://api.github.com/repos/pytorch/pytorch/issues/62809/comments",
"statuses_url": "https://api.github.com/repos/pytorch/pytorch/statuses/d3d22005a0665687aaf1d32870fd91e8295fa53c",
"head": {
"label": "pytorch:gh/z-a-f/117/head",
"ref": "gh/z-a-f/117/head",
"sha": "d3d22005a0665687aaf1d32870fd91e8295fa53c",
"user": {
"login": "pytorch",
"id": 21003710,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjIxMDAzNzEw",
"avatar_url": "https://avatars.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://avatars.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": "2021-09-09T07:19:30Z",
"pushed_at": "2021-09-09T07:21:49Z",
"git_url": "git://github.com/pytorch/pytorch.git",
"ssh_url": "[email protected]:pytorch/pytorch.git",
"clone_url": "https://github.com/pytorch/pytorch.git",
"svn_url": "https://github.com/pytorch/pytorch",
"homepage": "https://pytorch.org",
"size": 591978,
"stargazers_count": 50699,
"watchers_count": 50699,
"language": "C++",
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"forks_count": 13835,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 9791,
"license": {
"key": "other",
"name": "Other",
"spdx_id": "NOASSERTION",
"url": null,
"node_id": "MDc6TGljZW5zZTA="
},
"forks": 13835,
"open_issues": 9791,
"watchers": 50699,
"default_branch": "master"
}
},
"base": {
"label": "pytorch:gh/z-a-f/117/base",
"ref": "gh/z-a-f/117/base",
"sha": "37837c2483408091e7d9f8cb078d01bf27598434",
"user": {
"login": "pytorch",
"id": 21003710,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjIxMDAzNzEw",
"avatar_url": "https://avatars.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://avatars.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": "2021-09-09T07:19:30Z",
"pushed_at": "2021-09-09T07:21:49Z",
"git_url": "git://github.com/pytorch/pytorch.git",
"ssh_url": "[email protected]:pytorch/pytorch.git",
"clone_url": "https://github.com/pytorch/pytorch.git",
"svn_url": "https://github.com/pytorch/pytorch",
"homepage": "https://pytorch.org",
"size": 591978,
"stargazers_count": 50699,
"watchers_count": 50699,
"language": "C++",
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"forks_count": 13835,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 9791,
"license": {
"key": "other",
"name": "Other",
"spdx_id": "NOASSERTION",
"url": null,
"node_id": "MDc6TGljZW5zZTA="
},
"forks": 13835,
"open_issues": 9791,
"watchers": 50699,
"default_branch": "master"
}
},
"_links": {
"self": {
"href": "https://api.github.com/repos/pytorch/pytorch/pulls/62809"
},
"html": {
"href": "https://github.com/pytorch/pytorch/pull/62809"
},
"issue": {
"href": "https://api.github.com/repos/pytorch/pytorch/issues/62809"
},
"comments": {
"href": "https://api.github.com/repos/pytorch/pytorch/issues/62809/comments"
},
"review_comments": {
"href": "https://api.github.com/repos/pytorch/pytorch/pulls/62809/comments"
},
"review_comment": {
"href": "https://api.github.com/repos/pytorch/pytorch/pulls/comments{/number}"
},
"commits": {
"href": "https://api.github.com/repos/pytorch/pytorch/pulls/62809/commits"
},
"statuses": {
"href": "https://api.github.com/repos/pytorch/pytorch/statuses/d3d22005a0665687aaf1d32870fd91e8295fa53c"
}
},
"author_association": "MEMBER",
"auto_merge": null,
"active_lock_reason": null,
"merged": false,
"mergeable": true,
"rebaseable": true,
"mergeable_state": "unstable",
"merged_by": null,
"comments": 1,
"review_comments": 0,
"maintainer_can_modify": false,
"commits": 1,
"additions": 52,
"deletions": 4,
"changed_files": 2
}
$ git push origin d932ad6ee075ef0dfea7293002990d011da6ec0c:refs/heads/gh/z-a-f/114/base e19b20b9be35d5bfd2308e670f601dba6515253e:refs/heads/gh/z-a-f/115/base 69b0de74d1269cdf614ff6fede099e97f9edfea3:refs/heads/gh/z-a-f/116/base 63b6a9cfe6e64019ab1b6547b20d573b3fb1062e:refs/heads/gh/z-a-f/117/base
# stderr:
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: Authentication failed for 'https://github.com/pytorch/pytorch/'
ERROR: Fatal exception
Traceback (most recent call last):
File "/home/zafar/miniconda3/envs/pytorch-dev/lib/python3.8/site-packages/ghstack/logs.py", line 107, in manager
yield
File "/home/zafar/miniconda3/envs/pytorch-dev/lib/python3.8/site-packages/ghstack/__main__.py", line 101, in main
ghstack.submit.main(
File "/home/zafar/miniconda3/envs/pytorch-dev/lib/python3.8/site-packages/ghstack/submit.py", line 201, in main
submitter.push_updates()
File "/home/zafar/miniconda3/envs/pytorch-dev/lib/python3.8/site-packages/ghstack/submit.py", line 988, in push_updates
self.sh.git("push", self.remote_name, *base_push_branches)
File "/home/zafar/miniconda3/envs/pytorch-dev/lib/python3.8/site-packages/ghstack/shell.py", line 271, in git
return self._maybe_rstrip(self.sh(*(("git",) + args), **kwargs))
File "/home/zafar/miniconda3/envs/pytorch-dev/lib/python3.8/site-packages/ghstack/shell.py", line 210, in sh
raise RuntimeError(
RuntimeError: git push origin d932ad6ee075ef0dfea7293002990d011da6ec0c:refs/heads/gh/z-a-f/114/base e19b20b9be35d5bfd2308e670f601dba6515253e:refs/heads/gh/z-a-f/115/base 69b0de74d1269cdf614ff6fede099e97f9edfea3:refs/heads/gh/z-a-f/116/base 63b6a9cfe6e64019ab1b6547b20d573b3fb1062e:refs/heads/gh/z-a-f/117/base failed with exit code 128
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment