What does the protobuf text format look like?

前端 未结 3 1492
南方客
南方客 2020-11-29 19:29

Google Protocol Buffers can not only be serialized in binary format, also be serialized as text. However I can\'t easily find examples of such text; what would it look like?

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-29 20:14

    An example from an open-source repo https://github.com/google/nvidia_libs_test/blob/master/cudnn_benchmarks.textproto

    convolution_benchmark {
      label: "NHWC_128x20x20x56x160"
      input {
        dimension: [128, 56, 20, 20]
        data_type: DATA_HALF
        format: TENSOR_NHWC
      }
    
    

提交回复
热议问题