get_element_cnt

函数功能

获取Tensor中的元素的个数。

函数原型

1
get_element_cnt(self) -> int

参数说明

返回值

返回Tensor中的元素的个数。

异常处理

约束说明