First, is caffe managed by yourself?
>No
Otherwise, I don't suggest change it by your own (may cause incompatibility
issues).
>Unfortunately I have to....
Second, this seems like a python question instead of protobuf.
>What I want to know is that if protobuf has a python api making it easier.
>>More specifically , I am looking for something equivalent to a
boost::xml_parser that parses xml
>> In another word, I want to know if there is somepkg allows me to do the
following thing
>>> proto = somepkg.somecls.parse("src/caffe/caffe.proto")
>>>
proto['LayerParameter'].append(somepkg.somecls.optional_field("MyNewParam","my_new_param",param_id))
>>> for fields in my_field_list:
>>> proto['MyNewParam'].append(field)
>>> somepkg.somecls.write(proto,"src/caffe/caffe.proto")
On Friday, June 16, 2017 at 2:21:17 AM UTC+8, Bo Yang wrote:
>
> First, is caffe managed by yourself? Otherwise, I don't suggest change it
> by your own (may cause incompatibility issues).
> Second, this seems like a python question instead of protobuf.
>
> On Wed, Jun 14, 2017 at 8:54 PM Lynx Commando <[email protected]
> <javascript:>> wrote:
>
>> More specifically, I am using caffe and I'd like to add new layers to it.
>> Then I need to modify the caffe.proto file by adding(or removing) some
>> messages and corresponding fields to some other messages.
>> I'd want to know if I can do this automatically with a python script.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Protocol Buffers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected]
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/protobuf.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
--
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.