File tree 3 files changed +9
-8
lines changed
3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
1
Loading a PyTorch Model in C++
2
2
==============================
3
3
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.
6
6
7
7
As its name suggests, the primary interface to PyTorch is the Python
8
8
programming language. While Python is a suitable and preferred language for
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
+
2
3
"""
3
4
Chatbot Tutorial
4
5
================
7
8
8
9
9
10
######################################################################
10
- # This example requires PyTorch 1.0 (preview) or later.
11
- # For installation information visit http://pytorch.org/get-started.
12
- #
13
11
# In this tutorial, we explore a fun and interesting use-case of recurrent
14
12
# sequence-to-sequence models. We will train a simple chatbot using movie
15
13
# scripts from the `Cornell Movie-Dialogs
16
14
# Corpus <https://www.cs.cornell.edu/~cristian/Cornell_Movie-Dialogs_Corpus.html>`__.
17
15
#
16
+ # .. attention:: This example requires PyTorch 1.0 (preview) or later.
17
+ # For installation information visit http://pytorch.org/get-started.
18
+ #
18
19
# Conversational models are a hot topic in artificial intelligence
19
20
# research. Chatbots can be found in a variety of settings, including
20
21
# customer service applications and online helpdesks. These bots are often
Original file line number Diff line number Diff line change 7
7
8
8
9
9
######################################################################
10
- # This example requires PyTorch 1.0 (preview) or later. For installation
11
- # information visit http://pytorch.org/get-started.
12
- #
13
10
# This tutorial will walk through the process of transitioning a
14
11
# sequence-to-sequence model to Torch Script using PyTorch’s Hybrid
15
12
# Frontend. The model that we will convert is the chatbot model from the
21
18
# regarding data preprocessing, model theory and definition, and model
22
19
# training.
23
20
#
21
+ # .. attention:: This example requires PyTorch 1.0 (preview) or later.
22
+ # For installation information visit http://pytorch.org/get-started.
23
+ #
24
24
# What is the Hybrid Frontend?
25
25
# ----------------------------
26
26
#
You can’t perform that action at this time.
0 commit comments