Hey everyone, i was doing some preprocessing on my data and realized that converting an array to a long torch tensor was consuming one of my classes. I’m pretty confused as to why this is happening. To give some context, my masks were created via VTK in C++ from cardiac contours.
Anyone might have any idea why this is happening?
Your print precision is such that a number less that 2. is being displayed
as 2.. Your pytorch .long() conversion truncates this value down to 1
(as expected).
Oh my, you’re absolutely right Frank!
I wasn’t even aware that could happen, turns out my “2.” was in reality 1,9999999995716.
Thanks, apologies for the screenshot I’ll edit it just in case.