Convert exponential notation “e+” to decimal notation in Pytorch

Exponential notation is confusing

When you print torch.tensor, it becomes exponential notation “+e”, and the meaning is sometimes difficult to understand.

I want to convert it to normal decimal notation.


This will give you decimal notation.


I’m a freelance engineer.
Work consultation
Please feel free to contact us with a brief development description.

I am making an app that uses Core ML and ARKit.
We send machine learning / AR related information.






Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store