How does JIT torch script find type of the variable

I am a beginner in open-source communities. And I have been trying to track down a bug in JIT for identifying type of a variable, but i am not able to point to the exact file where it happens. I have been looking into ir.h, parser .h, and the Scalar type of IR isnt defined anywhere. I am specifically working on ceil function. Any info regarding this is welcome.

I’m not sure what exactly you are looking for, but in case it’s a specific C++ type you might want to grep -r your PyTorch repository to check where it’s used and defined.