DoubleTensor promoted CudNN error. However, FloatTensor with torch.set_printoptions(precision=10) worked. But the question is, will it be true for all up and coming tensors? Then a lot of precision will be lost if I want all other tensors to be default and have exactly those precision which it obtains.