{"action":"reopened","issue":{"url":"https://api.github.com/repos/pytorch/pytorch/issues/5431","repository_url":"https://api.github.com/repos/pytorch/pytorch","labels_url":"https://api.github.com/repos/pytorch/pytorch/issues/5431/labels{/name}","comments_url":"https://api.github.com/repos/pytorch/pytorch/issues/5431/comments","events_url":"https://api.github.com/repos/pytorch/pytorch/issues/5431/events","html_url":"https://github.com/pytorch/pytorch/issues/5431","id":300612849,"node_id":"MDU6SXNzdWUzMDA2MTI4NDk=","number":5431,"title":"Docs Error: Incorrect Output of torch.gels() Example","user":{"login":"ZhiqingXiao","id":12758455,"node_id":"MDQ6VXNlcjEyNzU4NDU1","avatar_url":"https://avatars1.githubusercontent.com/u/12758455?v=4","gravatar_id":"","url":"https://api.github.com/users/ZhiqingXiao","html_url":"https://github.com/ZhiqingXiao","followers_url":"https://api.github.com/users/ZhiqingXiao/followers","following_url":"https://api.github.com/users/ZhiqingXiao/following{/other_user}","gists_url":"https://api.github.com/users/ZhiqingXiao/gists{/gist_id}","starred_url":"https://api.github.com/users/ZhiqingXiao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZhiqingXiao/subscriptions","organizations_url":"https://api.github.com/users/ZhiqingXiao/orgs","repos_url":"https://api.github.com/users/ZhiqingXiao/repos","events_url":"https://api.github.com/users/ZhiqingXiao/events{/privacy}","received_events_url":"https://api.github.com/users/ZhiqingXiao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-02-27T12:35:51Z","updated_at":"2018-08-14T05:05:21Z","closed_at":null,"author_association":"NONE","body":"(edited according to @SsnL  's comment) **Output of torch.gels() example is incorrect.**\r\n\r\nI try to reprise the example in http://pytorch.org/docs/0.3.1/torch.html#torch.gels, which uses a 5x2 Tensor and a 5x3 Tensor to generate a 3x2 Tensor. However, my running generates a 5x2 Tensor. The output of example is incorrect.\r\n\r\n- OS: Windows 10 x64\r\n- PyTorch version: 0.3.0b0+591e73e\r\n- How you installed PyTorch (conda, pip, source): conda install -c peterjc123 pytorch\r\n- Python version: 3.6.0\r\n- CUDA/cuDNN version: N/A\r\n- GPU models and configuration: N/A\r\n- GCC version (if compiling from source): N/A\r\n\r\n- A script to reproduce the bug. Please try to provide as minimal of a test case as possible.\r\n```\r\nimport torch\r\nA = torch.Tensor([[1, 1, 1],\r\n                  [2, 3, 4],\r\n                  [3, 5, 2],\r\n                  [4, 2, 5],\r\n                  [5, 4, 3]])\r\nB = torch.Tensor([[-10, -3],\r\n                  [ 12, 14],\r\n                  [ 14, 12],\r\n                  [ 16, 16],\r\n                  [ 18, 16]])\r\nX, _ = torch.gels(B, A)\r\nX\r\n```\r\n\r\n- Error messages and/or stack traces of the bug\r\n![image](https://user-images.githubusercontent.com/12758455/36729013-baa02982-1bfd-11e8-991e-bfa144e88290.png)\r\n\r\n\r\n"}}
{"actor":{"display_login":"soumith"}}