def set_params(self, 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
Set parameters to the network (i.e. all the layer parameters).
dataset/ETHPy150Open bbabenko/simple_convnet/simple_convnet/convnet.py/NNet.set_params