torch.randn  has no “requires_grad” parameter. It returns "a tensor filled  with random numbers from a normal distribution with zero mean and variance of one." 12
You can then wrap that Tensor in a Variable:
input = torch.autograd.Variable(torch.randn((3,5)), requires_grad=True)

Edit: updated link to docs from version 0.3.1