Skip to content

Commit 50dc24b

Browse files
committed
Added rst styled admonitions to new tutorials.
1 parent b1a6d7d commit 50dc24b

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

advanced_source/cpp_export.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Loading a PyTorch Model in C++
22
==============================
33

4-
This tutorial requires PyTorch 1.0 (preview) or later. For installation information
5-
visit http://pytorch.org/get-started.
4+
.. attention:: This tutorial requires PyTorch 1.0 (preview) or later.
5+
For installation information visit http://pytorch.org/get-started.
66

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

beginner_source/chatbot_tutorial.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: utf-8 -*-
2+
23
"""
34
Chatbot Tutorial
45
================
@@ -7,14 +8,14 @@
78

89

910
######################################################################
10-
# This example requires PyTorch 1.0 (preview) or later.
11-
# For installation information visit http://pytorch.org/get-started.
12-
#
1311
# In this tutorial, we explore a fun and interesting use-case of recurrent
1412
# sequence-to-sequence models. We will train a simple chatbot using movie
1513
# scripts from the `Cornell Movie-Dialogs
1614
# Corpus <https://www.cs.cornell.edu/~cristian/Cornell_Movie-Dialogs_Corpus.html>`__.
1715
#
16+
# .. attention:: This example requires PyTorch 1.0 (preview) or later.
17+
# For installation information visit http://pytorch.org/get-started.
18+
#
1819
# Conversational models are a hot topic in artificial intelligence
1920
# research. Chatbots can be found in a variety of settings, including
2021
# customer service applications and online helpdesks. These bots are often

beginner_source/deploy_seq2seq_hybrid_frontend_tutorial.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77

88

99
######################################################################
10-
# This example requires PyTorch 1.0 (preview) or later. For installation
11-
# information visit http://pytorch.org/get-started.
12-
#
1310
# This tutorial will walk through the process of transitioning a
1411
# sequence-to-sequence model to Torch Script using PyTorch’s Hybrid
1512
# Frontend. The model that we will convert is the chatbot model from the
@@ -21,6 +18,9 @@
2118
# regarding data preprocessing, model theory and definition, and model
2219
# training.
2320
#
21+
# .. attention:: This example requires PyTorch 1.0 (preview) or later.
22+
# For installation information visit http://pytorch.org/get-started.
23+
#
2424
# What is the Hybrid Frontend?
2525
# ----------------------------
2626
#

0 commit comments

Comments
 (0)