r"""Save with a file-like object. save(f, _extra_files={}) See :func:`torch.jit.save ` which accepts a file-like object. This function, torch.save(), converts the object to a string, treating it as a path. DO NOT confuse these two fun
(self, f, **kwargs)
| 740 | return (r[0], ConstMap(r[1])) |
| 741 | |
| 742 | def save(self, f, **kwargs): |
| 743 | r"""Save with a file-like object. |
| 744 | |
| 745 | save(f, _extra_files={}) |
| 746 | |
| 747 | See :func:`torch.jit.save <torch.jit.save>` which accepts a file-like object. |
| 748 | This function, torch.save(), converts the object to a string, treating it as a path. |
| 749 | DO NOT confuse these two functions when it comes to the 'f' parameter functionality. |
| 750 | """ |
| 751 | return self._c.save(str(f), **kwargs) |
| 752 | |
| 753 | def _save_for_lite_interpreter(self, *args, **kwargs): |
| 754 | r"""Add (or update) the bytecode session to the script model. |
no outgoing calls