def add_clip(self, input_name, output_name, min_value, max_value): layer = caffe_net.LayerParameter(name=output_name, type='Clip', bottom=[input_name], top=[output_name]) layer.clip_param(min_value, max_value) self.caffe_model.add_layer(layer) self.data_dict[output_name] = Operators.clip(self.data_dict[input_name], min_value, max_value, output_name) return output_name