From 1428770b040cdb4cfd98f02a187bf50362d2c7fe Mon Sep 17 00:00:00 2001 From: Mark Saroufim Date: Mon, 2 Dec 2024 08:17:48 -0800 Subject: [PATCH] Change torchscript maintenance from note to warning (#3169) This changes the TorchScript notes to warnings because we want people to move away from TorchScript and not being under maintenance is scary --- advanced_source/cpp_export.rst | 2 +- advanced_source/torch-script-parallelism.rst | 2 +- advanced_source/torch_script_custom_classes.rst | 2 +- beginner_source/Intro_to_TorchScript_tutorial.py | 2 +- beginner_source/deploy_seq2seq_hybrid_frontend_tutorial.py | 2 +- prototype_source/torchscript_freezing.py | 2 +- recipes_source/distributed_optim_torchscript.rst | 2 +- recipes_source/torchscript_inference.rst | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/advanced_source/cpp_export.rst b/advanced_source/cpp_export.rst index 3cf58b592e..286c79622d 100644 --- a/advanced_source/cpp_export.rst +++ b/advanced_source/cpp_export.rst @@ -1,7 +1,7 @@ Loading a TorchScript Model in C++ ===================================== -.. note:: TorchScript is no longer in active development. +.. warning:: TorchScript is no longer in active development. As its name suggests, the primary interface to PyTorch is the Python programming language. While Python is a suitable and preferred language for diff --git a/advanced_source/torch-script-parallelism.rst b/advanced_source/torch-script-parallelism.rst index e775aacca5..09900dbf0d 100644 --- a/advanced_source/torch-script-parallelism.rst +++ b/advanced_source/torch-script-parallelism.rst @@ -1,7 +1,7 @@ Dynamic Parallelism in TorchScript ================================== -.. note:: TorchScript is no longer in active development. +.. warning:: TorchScript is no longer in active development. In this tutorial, we introduce the syntax for doing *dynamic inter-op parallelism* in TorchScript. This parallelism has the following properties: diff --git a/advanced_source/torch_script_custom_classes.rst b/advanced_source/torch_script_custom_classes.rst index 6638e7b0d8..8586a032aa 100644 --- a/advanced_source/torch_script_custom_classes.rst +++ b/advanced_source/torch_script_custom_classes.rst @@ -1,7 +1,7 @@ Extending TorchScript with Custom C++ Classes =============================================== -.. note:: TorchScript is no longer in active development. +.. warning:: TorchScript is no longer in active development. This tutorial is a follow-on to the :doc:`custom operator ` diff --git a/beginner_source/Intro_to_TorchScript_tutorial.py b/beginner_source/Intro_to_TorchScript_tutorial.py index 458cf65463..5479922934 100644 --- a/beginner_source/Intro_to_TorchScript_tutorial.py +++ b/beginner_source/Intro_to_TorchScript_tutorial.py @@ -4,7 +4,7 @@ **Authors:** James Reed (jamesreed@fb.com), Michael Suo (suo@fb.com), rev2 -.. note:: TorchScript is no longer in active development. +.. warning:: TorchScript is no longer in active development. This tutorial is an introduction to TorchScript, an intermediate representation of a PyTorch model (subclass of ``nn.Module``) that diff --git a/beginner_source/deploy_seq2seq_hybrid_frontend_tutorial.py b/beginner_source/deploy_seq2seq_hybrid_frontend_tutorial.py index c36380b0f5..1fb0f4d24b 100644 --- a/beginner_source/deploy_seq2seq_hybrid_frontend_tutorial.py +++ b/beginner_source/deploy_seq2seq_hybrid_frontend_tutorial.py @@ -4,7 +4,7 @@ ================================================== **Author:** `Matthew Inkawhich `_ -.. note:: TorchScript is no longer in active development. +.. warning:: TorchScript is no longer in active development. """ diff --git a/prototype_source/torchscript_freezing.py b/prototype_source/torchscript_freezing.py index 21e49aa50a..b5b467a247 100644 --- a/prototype_source/torchscript_freezing.py +++ b/prototype_source/torchscript_freezing.py @@ -2,7 +2,7 @@ Model Freezing in TorchScript ============================= -.. note:: TorchScript is no longer in active development. +.. warning:: TorchScript is no longer in active development. In this tutorial, we introduce the syntax for *model freezing* in TorchScript. Freezing is the process of inlining Pytorch module parameters and attributes diff --git a/recipes_source/distributed_optim_torchscript.rst b/recipes_source/distributed_optim_torchscript.rst index 2636738529..2e68f03517 100644 --- a/recipes_source/distributed_optim_torchscript.rst +++ b/recipes_source/distributed_optim_torchscript.rst @@ -1,7 +1,7 @@ Distributed Optimizer with TorchScript support ============================================================== -.. note:: TorchScript is no longer in active development. +.. warning:: TorchScript is no longer in active development. In this recipe, you will learn: diff --git a/recipes_source/torchscript_inference.rst b/recipes_source/torchscript_inference.rst index 8aa606fd0d..8c78413edd 100644 --- a/recipes_source/torchscript_inference.rst +++ b/recipes_source/torchscript_inference.rst @@ -1,7 +1,7 @@ TorchScript for Deployment ========================== -.. note:: TorchScript is no longer in active development. +.. warning:: TorchScript is no longer in active development. In this recipe, you will learn: