How to print more than 4 digits after decimal?

I get tensor as

tensor([[[0.1200],
         [0.0700]],

        [[0.0216],
         [0.0048]],

        [[0.0026],
         [0.0035]],

        [[0.0002],
         [0.0004]]])

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

f'{x:.5f}'

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.