pytorch tensor to float different value decimals code example Example: torch print floating precision torch.set_printoptions(precision=10)