Hacker News new | ask | show | jobs
by antirez 3285 days ago
The problem is that this library is not just a C easy-to-bind project, otherwise an high quality embeddable library that can work reasonably well with CPUs and can also benefit from commonly used GPUs in small systems, could be useful for a number of projects. Not all the problems need to have a huge dataset of complex entries (like million of images), there are many IoT problems that instead need a self contained library supporting different kinds of NNs.
1 comments

Seems like out of the major libraries (TF/Caffe/Theano/pytorch), pytorch is the only one to have a core that is C (the TH*). It's not exactly a small library, though. One small library that is in C and has some state-of-the-art features is Darknet (https://pjreddie.com/darknet).

That said, seems like directly using the C++ API was a major use case here, and it looks fairly clean to me.

Does the C (or is it C++?) core of pytorch come directly from torch or do they add more functionality? Is there a way to interface with this core using C?
TensorFlow and Caffe are also implemented in C++.
Being implemented in C++ doesn't ensure that a C++ interface exists. A C++ API is available for TensorFlow, though, and also a C API.