Skip to content

Commit 243b96a

Browse files
authored
Merge branch 'main' into add-last-reviewed
2 parents 849873b + 25f1156 commit 243b96a

10 files changed

+10
-10
lines changed

advanced_source/cpp_export.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Loading a TorchScript Model in C++
22
=====================================
33

4-
.. note:: TorchScript is no longer in active development.
4+
.. warning:: TorchScript is no longer in active development.
55

66
As its name suggests, the primary interface to PyTorch is the Python
77
programming language. While Python is a suitable and preferred language for

advanced_source/torch-script-parallelism.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Dynamic Parallelism in TorchScript
22
==================================
33

4-
.. note:: TorchScript is no longer in active development.
4+
.. warning:: TorchScript is no longer in active development.
55

66
In this tutorial, we introduce the syntax for doing *dynamic inter-op parallelism*
77
in TorchScript. This parallelism has the following properties:

advanced_source/torch_script_custom_classes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Extending TorchScript with Custom C++ Classes
22
===============================================
33

4-
.. note:: TorchScript is no longer in active development.
4+
.. warning:: TorchScript is no longer in active development.
55

66
This tutorial is a follow-on to the
77
:doc:`custom operator <torch_script_custom_ops>`

beginner_source/Intro_to_TorchScript_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
**Authors:** James Reed (jamesreed@fb.com), Michael Suo (suo@fb.com), rev2
66
7-
.. note:: TorchScript is no longer in active development.
7+
.. warning:: TorchScript is no longer in active development.
88
99
This tutorial is an introduction to TorchScript, an intermediate
1010
representation of a PyTorch model (subclass of ``nn.Module``) that

beginner_source/chatbot_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,7 @@ def forward(self, input_seq, input_length, max_length):
11281128
# Forward input through encoder model
11291129
encoder_outputs, encoder_hidden = self.encoder(input_seq, input_length)
11301130
# Prepare encoder's final hidden layer to be first hidden input to the decoder
1131-
decoder_hidden = encoder_hidden[:decoder.n_layers]
1131+
decoder_hidden = encoder_hidden[:self.decoder.n_layers]
11321132
# Initialize decoder input with SOS_token
11331133
decoder_input = torch.ones(1, 1, device=device, dtype=torch.long) * SOS_token
11341134
# Initialize tensors to append decoded words to

beginner_source/deploy_seq2seq_hybrid_frontend_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
==================================================
55
**Author:** `Matthew Inkawhich <https://github.com/MatthewInkawhich>`_
66
7-
.. note:: TorchScript is no longer in active development.
7+
.. warning:: TorchScript is no longer in active development.
88
"""
99

1010

beginner_source/nn_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
# MNIST data setup
3232
# ----------------
3333
#
34-
# We will use the classic `MNIST <http://deeplearning.net/data/mnist/>`_ dataset,
34+
# We will use the classic `MNIST <https://yann.lecun.com/exdb/mnist/index.html>`_ dataset,
3535
# which consists of black-and-white images of hand-drawn digits (between 0 and 9).
3636
#
3737
# We will use `pathlib <https://docs.python.org/3/library/pathlib.html>`_

prototype_source/torchscript_freezing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Model Freezing in TorchScript
33
=============================
44
5-
.. note:: TorchScript is no longer in active development.
5+
.. warning:: TorchScript is no longer in active development.
66
77
In this tutorial, we introduce the syntax for *model freezing* in TorchScript.
88
Freezing is the process of inlining Pytorch module parameters and attributes

recipes_source/distributed_optim_torchscript.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Distributed Optimizer with TorchScript support
22
==============================================================
33

4-
.. note:: TorchScript is no longer in active development.
4+
.. warning:: TorchScript is no longer in active development.
55

66
In this recipe, you will learn:
77

recipes_source/torchscript_inference.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
TorchScript for Deployment
22
==========================
33

4-
.. note:: TorchScript is no longer in active development.
4+
.. warning:: TorchScript is no longer in active development.
55

66
In this recipe, you will learn:
77

0 commit comments

Comments
 (0)