Skip to content

Latest commit

 

History

History
59 lines (50 loc) · 1.2 KB

File metadata and controls

59 lines (50 loc) · 1.2 KB

TorchScript

.. toctree::
    :maxdepth: 1
    :hidden:

    jit_language_reference
    jit_language_reference_v2
    jit_python_reference
    jit_unsupported
    torch.jit.supported_ops <jit_builtin_functions>

Warning

TorchScript is deprecated, please use torch.export instead.

.. automodule:: torch.jit

Creating TorchScript Code

.. autosummary::
    :toctree: generated
    :nosignatures:

    script
    trace
    script_if_tracing
    trace_module
    fork
    wait
    ScriptModule
    ScriptFunction
    freeze
    optimize_for_inference
    enable_onednn_fusion
    onednn_fusion_enabled
    set_fusion_strategy
    strict_fusion
    save
    load
    ignore
    unused
    interface
    isinstance
    Attribute
    annotate


.. py:module:: torch.jit.supported_ops
.. py:module:: torch.jit.unsupported_tensor_ops
.. py:module:: torch.jit.mobile
.. py:module:: torch.jit.annotations
.. py:module:: torch.jit.frontend
.. py:module:: torch.jit.generate_bytecode
.. py:module:: torch.jit.quantized