hunkim / PyTorchZeroToAll

Simple PyTorch Tutorials Zero to ALL!
http://bit.ly/PyTorchZeroAll
3.89k stars 1.2k forks source link

removed a comparison-to-literal pitfall #58

Open NaelsonDouglas opened 3 years ago

NaelsonDouglas commented 3 years ago

The problem The code had a comparison-to-literal pitfall (Pylint code R0123) case.

Solution Applied a simple refactoring to it