mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Although the sun is setting for torchscript, it is not [officially deprecated](https://github.com/pytorch/pytorch/issues/103841#issuecomment-1605017153) since nothing currently fully replaces it. Thus, "downstream" libraries like TorchVision, that started offering torchscript support still need to support it for BC. torchscript has forced us to use workaround after workaround since forever. Although this makes the code harder to read and maintain, we made our peace with it. However, we are currently looking into more elaborate API designs that are severely hampered by our torchscript BC guarantees. Although likely not intended as such, while looking for ways to enable our design while keeping a subset of it scriptable, we found the undocumented `__prepare_scriptable__` escape hatch: |
||
|---|---|---|
| .. | ||
| _passes | ||
| mobile | ||
| __init__.py | ||
| _async.py | ||
| _await.py | ||
| _builtins.py | ||
| _check.py | ||
| _dataclass_impls.py | ||
| _decomposition_utils.py | ||
| _decompositions.py | ||
| _freeze.py | ||
| _fuser.py | ||
| _ir_utils.py | ||
| _logging.py | ||
| _monkeytype_config.py | ||
| _pickle.py | ||
| _recursive.py | ||
| _script.py | ||
| _serialization.py | ||
| _shape_functions.py | ||
| _state.py | ||
| _trace.py | ||
| annotations.py | ||
| frontend.py | ||
| generate_bytecode.py | ||
| quantized.py | ||
| supported_ops.py | ||
| unsupported_tensor_ops.py | ||