Exemplo n.º 1
0
 def add_argmax(self, input_name, axis, output_name):
     layer = caffe_net.LayerParameter(name=output_name, type='ArgMax',
                 bottom=[input_name], top=[output_name])
     layer.argmax_param(axis)
     self.caffe_model.add_layer(layer)
     self.data_dict[output_name] = Operators.argmax(self.data_dict[input_name], axis, output_name)
     return output_name