Most of the code you will see in this book is written in Python. Almost all of the popular deep learning tools (PyTorch, TensorFlow, Keras, MXNet, and so on) are also written in Python. Python is easy to learn and easy to use, especially compared to other object-oriented programming (OOP) languages such as C++ and Java. However, using Python does not excuse us from lazy coding. We should never settle with it works. In deep learning, efficient code may save us hours of training time. In this section, we will give you some tips and advice on writing efficient Python projects.
Efficient coding in Python
Reinventing the wheel wisely
Innovative developers are not enthusiastic about reinventing the wheel, that is, implementing every...