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