How to print more than 4 digits after decimal?

I get tensor as





how do I print after four digits, that is something like, 0.120001203, 0.070020133?


throws error

TypeError: unsupported format string passed to Tensor.__format__

You could use torch.set_printoptions with the precision or profile argument to get more decimals.

thanks, it works now.