示例#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)
示例#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)
示例#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)