产品 |
是否支持 |
---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
int64_t aclGetTensorDescDim(const aclTensorDesc *desc, size_t index)
参数名 |
输入/输出 |
说明 |
---|---|---|
desc |
输入 |
aclTensorDesc类型的指针。 需提前调用aclCreateTensorDesc接口创建aclTensorDesc类型。 |
index |
输入 |
指定获取第几个维度的大小,index值从0开始。 用户调用aclGetTensorDescNumDims接口获取shape维度个数,这个Index的取值范围:[0, (shape维度个数-1)]。 |
返回指定tensor描述中指定维度的大小。