From 8a2caaaa95351d372263df977e3193530f5d30c0 Mon Sep 17 00:00:00 2001 From: Vijay Viswanathan Date: Mon, 31 Aug 2020 22:34:27 -0400 Subject: [PATCH 1/4] Fix typo in "Introduction to Pytorch" tutorial (in Pytorch for NLP tutorials) --- beginner_source/nlp/pytorch_tutorial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beginner_source/nlp/pytorch_tutorial.py b/beginner_source/nlp/pytorch_tutorial.py index d61496d382c..2e60c20ab81 100644 --- a/beginner_source/nlp/pytorch_tutorial.py +++ b/beginner_source/nlp/pytorch_tutorial.py @@ -274,7 +274,7 @@ ############################################################### # You can also stop autograd from tracking history on Tensors -# with ``.requires_grad``=True by wrapping the code block in +# with ``.requires_grad=True`` by wrapping the code block in # ``with torch.no_grad():`` print(x.requires_grad) print((x ** 2).requires_grad) From 334b2efe3b04e5e1509cb92d64732444372912b1 Mon Sep 17 00:00:00 2001 From: Vijay Viswanathan Date: Tue, 1 Sep 2020 07:49:50 -0400 Subject: [PATCH 2/4] Dummy commit, to restart CI --- beginner_source/nlp/pytorch_tutorial.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/beginner_source/nlp/pytorch_tutorial.py b/beginner_source/nlp/pytorch_tutorial.py index 2e60c20ab81..6d2c5d3353b 100644 --- a/beginner_source/nlp/pytorch_tutorial.py +++ b/beginner_source/nlp/pytorch_tutorial.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -r""" +""" Introduction to PyTorch *********************** @@ -281,5 +281,3 @@ with torch.no_grad(): print((x ** 2).requires_grad) - - From a54ec70320c5df29701856bc2d2820332260960c Mon Sep 17 00:00:00 2001 From: Vijay Viswanathan Date: Tue, 1 Sep 2020 07:50:33 -0400 Subject: [PATCH 3/4] Revert dummy commit, to restart CI --- beginner_source/nlp/pytorch_tutorial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beginner_source/nlp/pytorch_tutorial.py b/beginner_source/nlp/pytorch_tutorial.py index 6d2c5d3353b..a4be6aef7e8 100644 --- a/beginner_source/nlp/pytorch_tutorial.py +++ b/beginner_source/nlp/pytorch_tutorial.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -""" +r""" Introduction to PyTorch *********************** From b867f3a51e9172cb36ff911447099210e269a4a4 Mon Sep 17 00:00:00 2001 From: Vijay Viswanathan Date: Tue, 1 Sep 2020 07:51:18 -0400 Subject: [PATCH 4/4] Revert whitespace changes --- beginner_source/nlp/pytorch_tutorial.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/beginner_source/nlp/pytorch_tutorial.py b/beginner_source/nlp/pytorch_tutorial.py index a4be6aef7e8..2e60c20ab81 100644 --- a/beginner_source/nlp/pytorch_tutorial.py +++ b/beginner_source/nlp/pytorch_tutorial.py @@ -281,3 +281,5 @@ with torch.no_grad(): print((x ** 2).requires_grad) + +