how to save python list as binary proto readable from c++?

34 views
Skip to first unread message

Erogol

unread,
Oct 21, 2015, 8:29:55 AM10/21/15
to Caffe Users
I want to create a list in Python and save it as a binary proto. Then I nee to read it by C++ code and get the values. How can I save my Python list in a proper form ?

Jan C Peters

unread,
Oct 21, 2015, 9:00:53 AM10/21/15
to Caffe Users
What does this have to do with Caffe?

Create a protobuf spec, compile it for python and c++ and use the created APIs to read/write. The format of the binary files is language-independent. But why so complicated? Just create a plain text or csv file. Easy to read and write from both C++ and Python.
Reply all
Reply to author
Forward
0 new messages