Skip to content
Discussion options

You must be logged in to vote

Hi @labdmitriy , thanks for suggesting! I should say that I prioritized code readability (and simplicity in terms of PyTorch commands) over pure efficiency as there are many PyTorch newcomers reading the book.

I think the data loader is also lightweight enough (and runs in multiple process) so that it wouldn't result in an observable speed-up during training

That being said, I actually really like your observation. It looks very clean and readable! If there's a new edition in 2-3 years, I make sure to revisit that! Thanks!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@labdmitriy
Comment options

Answer selected by labdmitriy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants