17#ifndef MIR_CAFFE2_PROTO_HELPER_H
18#define MIR_CAFFE2_PROTO_HELPER_H
20#include "caffe2/proto/caffe2.pb.h"
25using RepArgument = const ::google::protobuf::RepeatedPtrField<::caffe2::Argument> &;
31int getSingleArgument(const ::caffe2::OperatorDef &op,
const std::string &argument_name,
33float getSingleArgument(const ::caffe2::OperatorDef &op,
const std::string &argument_name,
35std::string
getSingleArgument(const ::caffe2::OperatorDef &op,
const std::string &argument_name,
36 const std::string &default_value);
const ::caffe2::Argument & findArgumentByName(RepArgument args, const std::string &name)
int getSingleArgument(const ::caffe2::OperatorDef &op, const std::string &argument_name, const int default_value)
bool hasArgument(RepArgument args, const std::string &name)
const ::google::protobuf::RepeatedPtrField<::caffe2::Argument > & RepArgument