Solved by albanD in post #4 
              
              
                If you work with a Tensor of type DoubleTensor, all your operations will have a double precision. 
If you perform operations that return a python number, then you get the precision of a python number: https://docs.python.org/2/library/stdtypes.html#typesnumeric (which is in general equivalent to a C…