Function caffe2_proto::get_flag_argument_from_args
source · pub fn get_flag_argument_from_args(
args: &RepeatedPtrField<Argument>,
name: &String,
default_value: Option<bool>
) -> bool
Expand description
| Helper methods to query a boolean argument | flag from OperatorDef or NetDef given | argument name. If argument does not | exist, return default value. | | Throws if argument exists but the type | is not boolean. |