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

Referring to, 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

1 Like

Great. I think I overlooked the same page.
The page I was looking for, is this :