Category: programming
-
Libtorch GPU Training and How to Use MPS
Arguably the most useful feature of deep learning libraries is their ability to move workloads to the GPU and PyTorch makes it very easy for users by providing a to() function that you can pass a device object to. The documentation doesn’t make it very clear about it, but actually Libtorch makes it just as…
-
Have You Thought About Using a Namespace in C++?
As someone originally coming from Python and then learning C++ later, namespaces were a new concept to me. For the longest time, I was interacting with the ones in the standard library, but not really writing my own. However, at one point I was working on a personal project (an emulator if you are interested!)…