aclGetViewOffset

Function Usage

Obtains the ViewOffset of the aclTensor, that is, the offset corresponding to ViewShape.

Prototype

aclnnStatus aclGetViewOffset(const aclTensor *tensor, int64_t *offset)

Parameters

Parameter

Input/Output

Description

tensor

Input

Source tensor. The aclTensor must be created by calling the aclCreateTensor API in advance.

offset

Output

Returned offset value.

Returns

0 on success; else, failure.