From cea459d33f7a5d87d3f7c1644054a41ccc7f8643 Mon Sep 17 00:00:00 2001 From: Daria Kolodzey Date: Thu, 9 May 2019 22:01:37 +0300 Subject: [PATCH] Remove unused line in the tutorial I guess, the line `x_train, x_train.shape, y_train.min(), y_train.max()` was useful in notebook environment where its presence caused jupyter to display these variables. But there are `print` statements below this line printing the same variables. So I think it's better to omit this line as it does nothing and looks confusing. --- beginner_source/nn_tutorial.py | 1 - 1 file changed, 1 deletion(-) diff --git a/beginner_source/nn_tutorial.py b/beginner_source/nn_tutorial.py index 5f915a3d3ea..aeb5f5f4e23 100644 --- a/beginner_source/nn_tutorial.py +++ b/beginner_source/nn_tutorial.py @@ -85,7 +85,6 @@ torch.tensor, (x_train, y_train, x_valid, y_valid) ) n, c = x_train.shape -x_train, x_train.shape, y_train.min(), y_train.max() print(x_train, y_train) print(x_train.shape) print(y_train.min(), y_train.max())