def set_params(self, params):
        """
        Set parameters to the network (i.e. all the layer parameters).

        Parameters
        ----------
        params : numpy array of length self.num_params()

        """
        ind = 0
        for layer in self.layers_:
            num_params = layer.num_params()
            if num_params:
                layer.set_params(params[ind:ind+num_params])
            ind += num_params
dataset/ETHPy150Open bbabenko/simple_convnet/simple_convnet/convnet.py/NNet.set_params/original