From f9f41bd52ea28948718d17e71206dc1efcc48d89 Mon Sep 17 00:00:00 2001 From: Maciej Smyk Date: Mon, 22 Apr 2024 14:12:20 +0200 Subject: [PATCH] [DOCS] Removal of openvino_ts backend from torch.compile for master (#24074) Removed information on openvino_ts backend from user documentation. --------- Co-authored-by: Karol Blaszczak --- .../openvino-workflow/torch-compile.rst | 54 +++++-------------- 1 file changed, 13 insertions(+), 41 deletions(-) diff --git a/docs/articles_en/openvino-workflow/torch-compile.rst b/docs/articles_en/openvino-workflow/torch-compile.rst index 450539d8a61..02e2364c339 100644 --- a/docs/articles_en/openvino-workflow/torch-compile.rst +++ b/docs/articles_en/openvino-workflow/torch-compile.rst @@ -22,52 +22,24 @@ By default, Torch code runs in eager-mode, but with the use of ``torch.compile`` How to Use #################### -To use ``torch.compile``, you need to add an import statement and define one of the two available backends: - -| ``openvino`` -| With this backend, Torch FX subgraphs are directly converted to OpenVINO representation without any additional PyTorch based tracing/scripting. - -| ``openvino_ts`` -| With this backend, Torch FX subgraphs are first traced/scripted with PyTorch Torchscript, and then converted to OpenVINO representation. +To use ``torch.compile``, you need to add an import statement and define the ``openvino`` backend. +This way Torch FX subgraphs will be directly converted to OpenVINO representation without +any additional PyTorch-based tracing/scripting. -.. tab-set:: +.. code-block:: sh - .. tab-item:: openvino - :sync: backend-openvino - - .. code-block:: console - - import openvino.torch - ... - model = torch.compile(model, backend='openvino') - - Execution diagram: - - .. image:: ../_static/images/torch_compile_backend_openvino.svg - :width: 992px - :height: 720px - :scale: 60% - :align: center - - .. tab-item:: openvino_ts - :sync: backend-openvino-ts - - .. code-block:: console - - import openvino.torch - ... - model = torch.compile(model, backend='openvino_ts') - - Execution diagram: - - .. image:: ../_static/images/torch_compile_backend_openvino_ts.svg - :width: 1088px - :height: 720px - :scale: 60% - :align: center + import openvino.torch + ... + model = torch.compile(model, backend='openvino') +Execution diagram: +.. image:: ../_static/images/torch_compile_backend_openvino.svg + :width: 992px + :height: 720px + :scale: 60% + :align: center Options ++++++++++++++++++++