NeuralNetwork.num_weights

property NeuralNetwork.num_weights: int

Returns the number of trainable weights.