You can do the clipping within the torch.no_grad() block and remove the .data as well.
To zero out gradients, you can do model.zero_grad() and that will zero out all the .grad fields of all the Parameters in the net.
It does something like:
with torch.no_grad():
  for p in model.parameters():
    p.grad.zero_()