Exemplo n.º 1
0
 def add_expand_dims(self, input_name, axis, output_name):
     layer = caffe_net.LayerParameter(name=output_name, type='Unsqueeze',
                 bottom=[input_name], top=[output_name])
     layer.unsqueeze_param(axis)
     self.caffe_model.add_layer(layer)
     self.data_dict[output_name] = Operators.expand_dims(self.data_dict[input_name], axis, output_name)
     return output_name