def num_nodes(self):
        return (np.sum(np.prod(layer.output_shape) for layer in self.layers_) + 
                np.prod(self.input_shape))
Returns the number of nodes/neurons in the network.
dataset/ETHPy150Open bbabenko/simple_convnet/simple_convnet/convnet.py/NNet.num_nodes