Skip to content

Conversation

@Hierom
Copy link
Contributor

@Hierom Hierom commented Jul 12, 2018

@MorvanZhou
Thanks for giving this kind tutorial for everyone who is learning pytorch.
By the way, there is one syntax warning should be fixed in your code for the future version pytorch (>0.5).

Use tensor.item() to convert a 0-dim tensor to a Python number

Another one problem is about the learning rate for this example, lr = 0.5 was too big that will not changing loss in this example, so I revise it as 0.4.

@Hierom
Copy link
Contributor Author

Hierom commented Jul 12, 2018

I saw that you are fixed these error in the contents folder, so let's revise it in the same way.
Thanks

@MorvanZhou MorvanZhou merged commit 304c0b2 into MorvanZhou:master Jul 15, 2018
@MorvanZhou
Copy link
Owner

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants