PyPy Vs TorchScript

Hi there,

I would like to know whether TorchScript can be considered as a PyPy but for Pytorch so that we can use TorchScript instead of PyPy?!

Is it possible to simultaneously use PyPy to speedup non-pytorch code snippets while TorchScript is used for pytorch module?

Best,
Ahmed

I believe pytorch c++ module makes it impossible to switch to PyPy. There is some remote similarity between PyPy and TorchScript, yes.

1 Like