Enamex:

Can you elaborate on this a bit more?


Well, so one thing could be to actually make it a method of the class of self before you JIT that class / the method.



 Enamex:

Absolutely. I meant that what those “specific things” are is a bit unclear to me. And doesn’t seem to be a goal of the documentation.


My chance to sell advanced PyTorch courses. Your chance to be a hero. 
More seriously we discuss this a bit in section 15.3.1 Interacting with the PyTorch JIT / What to expect from moving beyond classic Python/PyTorch of out book that you can download in exchange for anwering a few questions 2.
To summarize that, the main use-cases I see are

exporting stuff,
getting rid of the GIL for nicer multithreading in deployment,
optimize certain patterns (e.g. pointwise ops in RNNs and elsewhere are one thing we had relatively early), but people are working on expanding this (e.g. to cover reductions).

Best regards
Thomas