29 caffe::NetParameter param;
32 google::protobuf::io::IstreamInputStream is{&std::cin};
33 google::protobuf::io::CodedInputStream coded_is{&is};
35 if (!param.ParseFromCodedStream(&coded_is))
37 std::cerr <<
"ERROR: Failed to parse caffemodel" << std::endl;
42 google::protobuf::io::OstreamOutputStream os{&std::cout};
43 google::protobuf::TextFormat::Print(param, &os);