GetInputOffset
Function Usage
Obtains the input offset based on the operator input index. The input 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 GetInputOffset(const size_t index) const |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
index |
Input |
Operator input index, starting from 0. |
Returns
Specified input offset. When the input 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->GetInputOffset(0); ... } |
Parent topic: TilingContext