Runtime error - Unsupported value kind: Tensor

I am not sure exactly how to reproduce the error, as I don’t have any clue what might be causing it.
My code base is quite large, multiple files are involved. I made changes (mostly datatypes, type annotation and wherever I got runtime error from torch.jit.script call) to support Torchscript.
If I get some idea in what cases that error might come, then I may write a custom code snippet to reproduce that error.
For now I have attached a screenshot of the error I got, with the call stack internal to torch.jit.script call (after disabling ‘justMyCode’). Hope this gives some idea!