# tensorplay.functional.numel Source: https://www.tensorplay.cn/docs/generated/tensorplay.functional.numel.html ```python tensorplay.functional.numel(input: Tensor) → int ``` Returns the total number of elements in the input tensor. Parameters: input ([Tensor](/docs/generated/tensorplay.Tensor.html#tensorplay.Tensor)) – the input tensor. Example: ``` >>> a = tensorplay.randn(1, 2, 3, 4, 5) >>> tensorplay.numel(a) 120 >>> a = tensorplay.zeros(4,4) >>> tensorplay.numel(a) 16 ```