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)
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)
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)