-
Notifications
You must be signed in to change notification settings - Fork 18.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Socket Data Layer #238
Comments
Protobuf works nicely with Python, so it might be a good choice. Not sure If you want to use socket communications, boost::asio seems to be a good Yangqing On Tue, Mar 18, 2014 at 4:24 PM, Sergey Karayev notifications@github.comwrote:
|
What do you think of zeromq + google protobuff? |
I would advocate for YAML binary way easier to maintain and works with On Monday, September 22, 2014, bhack notifications@github.com wrote:
Sergio |
Agreed, YAML seems like the first contender for a prototype socket layer. |
Some serialization example in python with zeromq |
Is YAML binary encoded base64? In this case i don't think that it will be so efficient if we want to enable also network support. |
Somebody has opened the course of Caffe in the network (not the neural one 😄) with #1140. I don't know if raw socket is the best solution but probably we could coordinate network feeding from the network in that work. |
I think also that transparent multitransport support could be interesting if performance overhead is low |
I believe @cypof has an in-progress layer that fits this purpose. |
Yes. @cypof and I have a socket-layer and some additional data-adapters that are almost complete. We'll be doing further internal tests at Flickr this week, and are hoping to have things finished from our side and PR'ed soon. (If not this week, it'll likely get pushed until after GTC though.) |
@cypof Do you have some news on this? |
@bhack this was replaced by integrating with Spark instead. On Sun, Jan 31, 2016, 3:19 AM bhack notifications@github.com wrote:
|
Closing as this has been addressed by CaffeOnSpark among other projects, and most simply can be handled by a Python data layer + zeromq or the like. |
Data preparation is orders of magnitude easier with high-level languages such as Python or R than with C++.
HDF5DataLayer
is a welcome interface between data preparation scripts and Caffe, but we can go even further. I propose a DataSource (see #148) that reads input on a socket. A separate process -- or processes -- which can be Python or R scripts, will be responsible for preparing data to send to the socket.I haven't coded sockets in C++ before. The main questions are:
The text was updated successfully, but these errors were encountered: