torch.jit.save
torch.jit.save(m, f, _extra_files=None)
Save an offline version of this module for use in a separate
   process. The saved module serializes all of the methods,
   submodules, parameters, and attributes of this module. It can be
   loaded into the C++ API using "torch::jit::load(filename)" or into
   the Python API with "torch.jit.load".
To be able to save a module, it must not make any calls to native
   Python functions.  This means that all submodules must be
   subclasses of "ScriptModule" as well.
Danger:
 All modules, no matter their device, are always loaded onto the
 CPU during loading.  This is different from "torch.load()"'s
 semantics and may change in the future.

Parameters:
      * m -- A "ScriptModule" to save.
  * **f** -- A file-like object (has to implement write and flush)
    or a string containing a file name.

  * **_extra_files** -- Map from filename to contents which will
    be stored as part of *f*.
