{"action":"opened","issue":{"url":"https://api.github.com/repos/torch/torch7/issues/220","labels_url":"https://api.github.com/repos/torch/torch7/issues/220/labels{/name}","comments_url":"https://api.github.com/repos/torch/torch7/issues/220/comments","events_url":"https://api.github.com/repos/torch/torch7/issues/220/events","html_url":"https://github.com/torch/torch7/issues/220","id":71142390,"number":220,"title":"doc for: torch.randperm ","user":{"login":"ameenetemady","id":9258958,"avatar_url":"https://avatars.githubusercontent.com/u/9258958?v=3","gravatar_id":"","url":"https://api.github.com/users/ameenetemady","html_url":"https://github.com/ameenetemady","followers_url":"https://api.github.com/users/ameenetemady/followers","following_url":"https://api.github.com/users/ameenetemady/following{/other_user}","gists_url":"https://api.github.com/users/ameenetemady/gists{/gist_id}","starred_url":"https://api.github.com/users/ameenetemady/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ameenetemady/subscriptions","organizations_url":"https://api.github.com/users/ameenetemady/orgs","repos_url":"https://api.github.com/users/ameenetemady/repos","events_url":"https://api.github.com/users/ameenetemady/events{/privacy}","received_events_url":"https://api.github.com/users/ameenetemady/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-27T00:44:51Z","updated_at":"2015-04-27T00:44:51Z","closed_at":null,"body":"not high priority, but I wasted some time, figuring this out, so ...:\r\nThe second argument to torch.randperm, is the type of output variable (e.g. 'torch.LongTensor'), it's worth mentioning it in the documentation (torch7/blob/master/doc/maths.md). I faced this while debugging nn.StochasticGradient:train\r\nAlso a question, I couldn't find the source of torch.randperm, how/where can I find it?\r\n\r\nI'm a newbie to torch, excuse me if this is too dumb\r\nThanks,\r\nAmeen."}}