Is there a c++ API equivalent to tensor.nelement()?

Referring to https://github.com/pytorch/pytorch/blob/master/aten/src/ATen/core/Tensor.h, I could not find an API equivalent to tensor.nelement() to get total number of elements in the tensor regardless of its dimension. Does anyone know about it?

The equivalent function is Tensor::numel()

is there a documentation or list of APIs that I could refer to?
Maybe I missed to look into it.

Here is cpp docs https://pytorch.org/cppdocs/index.html

1 Like

Great. I think I overlooked the same page.
The page I was looking for, is this : https://pytorch.org/cppdocs/genindex.html