下载
中文
注册

Numel

函数功能

获取aclTensor的总元素个数。

函数原型

int64_t Numel()

参数说明

返回值说明

返回aclTensor的总元素个数。

约束说明

调用示例

// 获取input的总元素个数
void Func(const aclTensor *input) {
    int64_t num = input->Numel();
}