GetOutputOffset
Function Usage
Obtains the pointer to an output offset based on the operator output index. The output index refers to the actual index after operator instantiation, not the index in the prototype definition.
This API is reserved for future use and not supported in the current version.
Prototype
1 | int64_t GetOutputOffset(const size_t index) const |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
index |
Input |
Operator input index, starting from 0. |
Returns
Specified output offset. When the output index is invalid or the tensor does not carry discontinuous description information, -1 is returned.
Constraints
None
Examples
1 2 3 4 | ge::graphStatus TilingForMul(TilingContext *context) { auto offset_0 = context->GetOutputOffset(0); ... } |
Parent topic: TilingContext