torch.jit.script
torch.jit.script(obj, optimize=None, _frames_up=0, _rcb=None, example_inputs=None)
Scripting a function or "nn.Module" will inspect the source code,
   compile it as TorchScript code using the TorchScript compiler, and
   return a "ScriptModule" or "ScriptFunction". TorchScript itself is
   a subset of the Python language, so not all features in Python
   work, but we provide enough functionality to compute on tensors and
   do control-dependent operations. For a complete guide, see the
   TorchScript Language Reference.
Scripting a dictionary or list copies the data inside it into a
   TorchScript instance than can be subsequently passed by reference
   between Python and TorchScript with zero copy overhead.
"torch.jit.script" can be used as a function for modules,
   functions, dictionaries and lists
      and as a decorator "@torch.jit.script" for TorchScript Classes
      and functions.
Parameters: