Beispiel #1
0
 def _setup_normarize(self, layer):
     blobs = layer.blobs
     func = Normalize(caffe._get_num(blobs[0]))
     func.scale.array[:] = np.array(blobs[0].data)
     with self.init_scope():
         setattr(self, layer.name, func)
Beispiel #2
0
 def _setup_normarize(self, layer):
     blobs = layer.blobs
     func = _Normalize(caffe._get_num(blobs[0]))
     func.scale.data[:] = np.array(blobs[0].data)
     self.add_link(layer.name, func)
Beispiel #3
0
 def _setup_normalize(self, layer):
     blobs = layer.blobs
     func = Normalize(caffe._get_num(blobs[0]))
     func.scale.array[:] = np.array(blobs[0].data)
     with self.init_scope():
         setattr(self, layer.name, func)