{"action":"created","issue":{"url":"https://api.github.com/repos/pytorch/pytorch/issues/10965","repository_url":"https://api.github.com/repos/pytorch/pytorch","labels_url":"https://api.github.com/repos/pytorch/pytorch/issues/10965/labels{/name}","comments_url":"https://api.github.com/repos/pytorch/pytorch/issues/10965/comments","events_url":"https://api.github.com/repos/pytorch/pytorch/issues/10965/events","html_url":"https://github.com/pytorch/pytorch/issues/10965","id":354877659,"node_id":"MDU6SXNzdWUzNTQ4Nzc2NTk=","number":10965,"title":"Wrong torch.svd Calculation Result","user":{"login":"yya007","id":11239571,"node_id":"MDQ6VXNlcjExMjM5NTcx","avatar_url":"https://avatars3.githubusercontent.com/u/11239571?v=4","gravatar_id":"","url":"https://api.github.com/users/yya007","html_url":"https://github.com/yya007","followers_url":"https://api.github.com/users/yya007/followers","following_url":"https://api.github.com/users/yya007/following{/other_user}","gists_url":"https://api.github.com/users/yya007/gists{/gist_id}","starred_url":"https://api.github.com/users/yya007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yya007/subscriptions","organizations_url":"https://api.github.com/users/yya007/orgs","repos_url":"https://api.github.com/users/yya007/repos","events_url":"https://api.github.com/users/yya007/events{/privacy}","received_events_url":"https://api.github.com/users/yya007/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-08-28T19:48:37Z","updated_at":"2018-08-29T03:52:35Z","closed_at":null,"author_association":"NONE","body":"If you have a question or would like help and support, please ask at our\r\n[forums](https://discuss.pytorch.org/).\r\n\r\nIf you are submitting a feature request, please preface the title with [feature request].\r\nIf you are submitting a bug report, please fill in the following details.\r\n\r\n## Issue description\r\nThe torch svd returned an unexpected result in the following case.\r\n\r\n## Code example\r\n\r\n>>> import numpy as np\r\n>>> a = np.arange(9) - 4\r\n>>> b = a.reshape((3,3))\r\n>>> bt= torch.from_numpy(b.astype(float))\r\n>>> torch.svd(bt)[1]\r\ntensor([7.3485e+00, 2.4495e+00, 3.1251e-17], dtype=torch.float64)\r\n\r\nExpected:\r\n7.3485E+0   2.4495E+0  1.8570E-16\r\n\r\n## System Info\r\nPlease copy and paste the output from our\r\n[environment collection script](https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py)\r\n(or fill out the checklist below manually).\r\n\r\nYou can get the script and run it with:\r\n```\r\nwget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py\r\n# For security purposes, please check the contents of collect_env.py before running it.\r\npython collect_env.py\r\n```\r\n\r\n- PyTorch or Caffe2:\r\n- How you installed PyTorch (conda, pip, source):\r\n- Build command you used (if compiling from source):\r\n- OS:\r\n- PyTorch version:\r\n- Python version:\r\n- CUDA/cuDNN version:\r\n- GPU models and configuration:\r\n- GCC version (if compiling from source):\r\n- CMake version:\r\n- Versions of any other relevant libraries:\r\n"},"comment":{"url":"https://api.github.com/repos/pytorch/pytorch/issues/comments/416815521","html_url":"https://github.com/pytorch/pytorch/issues/10965#issuecomment-416815521","issue_url":"https://api.github.com/repos/pytorch/pytorch/issues/10965","id":416815521,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjgxNTUyMQ==","user":{"login":"yya007","id":11239571,"node_id":"MDQ6VXNlcjExMjM5NTcx","avatar_url":"https://avatars3.githubusercontent.com/u/11239571?v=4","gravatar_id":"","url":"https://api.github.com/users/yya007","html_url":"https://github.com/yya007","followers_url":"https://api.github.com/users/yya007/followers","following_url":"https://api.github.com/users/yya007/following{/other_user}","gists_url":"https://api.github.com/users/yya007/gists{/gist_id}","starred_url":"https://api.github.com/users/yya007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yya007/subscriptions","organizations_url":"https://api.github.com/users/yya007/orgs","repos_url":"https://api.github.com/users/yya007/repos","events_url":"https://api.github.com/users/yya007/events{/privacy}","received_events_url":"https://api.github.com/users/yya007/received_events","type":"User","site_admin":false},"created_at":"2018-08-29T03:52:35Z","updated_at":"2018-08-29T03:52:35Z","author_association":"NONE","body":"@SsnL MKL doesn't affect that. Numpy could get correct result when it uses MKL. "}}
{"actor":{"display_login":"yya007"}}