What's the different between .proto and .prototxt file

后端 未结 1 1978
刺人心
刺人心 2021-01-05 14:00

In caffe project, there are both .proto file and .prototxt file.

From Google Protocol Buffer documentation, .proto file d

1条回答
  •  鱼传尺愫
    2021-01-05 14:21

    The .proto file is used to describe the structure (the 'protocol') of the data to be serialized. The protobuf compiler can turn this file into python/or C++/or Java code to serialize and deserialize data with that structure

    For the .prototxt file. Looking at the documentation here, we can see that, there are two different formats for serialized data (textual or binary). The text format is human-readable and modifiable (and the corresponding files usually have the extension .prototxt), but it takes up a lot more space than the binary format.

    0 讨论(0)
提交回复
热议问题