Skip to content

Conversation

@Oktosha
Copy link
Contributor

@Oktosha Oktosha commented May 9, 2019

It's really a typo-level fix. I suggest to remove the line

x_train, x_train.shape, y_train.min(), y_train.max()

which comes right before the lines

print(x_train, y_train)
print(x_train.shape)
print(y_train.min(), y_train.max())

It looks like the line I suggest to remove was used to make the notebook to display the variables. But there are print statements below that print the very same variables. So, if I get it right, the line I suggest to remove serves for nothing. That's why I suggest to remove it for clarity.

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.
@netlify
Copy link

netlify bot commented May 9, 2019

Deploy preview for pytorch-tutorials-preview ready!

Built with commit ec341ff

https://deploy-preview-499--pytorch-tutorials-preview.netlify.app

@Oktosha Oktosha changed the title Remove unused line in the tutorial [nn_tutorial.py] remove line var before line print(var) May 12, 2019
Base automatically changed from master to main February 16, 2021 19:33
Base automatically changed from main to master February 16, 2021 19:37
@facebook-github-bot
Copy link
Contributor

Hi @Oktosha!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@holly1238
Copy link
Contributor

Hi @Oktosha! Can you sign the CLA agreement so that I can merge the pull request? Thanks!

@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@holly1238 holly1238 merged commit 760455d into pytorch:master Apr 26, 2021
rodrigo-techera pushed a commit to Experience-Monks/tutorials that referenced this pull request Nov 29, 2021
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 <[email protected]>
Co-authored-by: holly1238 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants