Skip to content

Commit 760455d

Browse files
Daria KolodzeySethHWeidmanholly1238
authored
Remove unused line in the tutorial (#499)
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. Co-authored-by: Seth Weidman <seth@sethweidman.com> Co-authored-by: holly1238 <77758406+holly1238@users.noreply.github.com>
1 parent ff0cfa1 commit 760455d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

beginner_source/nn_tutorial.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
torch.tensor, (x_train, y_train, x_valid, y_valid)
8686
)
8787
n, c = x_train.shape
88-
x_train, x_train.shape, y_train.min(), y_train.max()
8988
print(x_train, y_train)
9089
print(x_train.shape)
9190
print(y_train.min(), y_train.max())

0 commit comments

Comments
 (0)