GetRequiredInputOffset

Function

Obtains the offset of the corresponding required input tensor based on the input index in the operator prototype definition.

This is a reserved API for future functionality and is not supported in the current version.

Function Prototype

int64_t GetRequiredInputOffset(const size_t ir_index) const

Parameters

ParameterInput/OutputDescription
ir_indexInputIndex of the required input in the operator IR prototype definition, starting from 0.

Return Value

Offset of the specified input tensor. If the input ir_index is invalid or the tensor does not carry non-contiguous description information, -1 is returned.

Constraints

None

Example

ge::graphStatus TilingForMul(TilingContext *context) {
  auto required_input_offset_0 = context->GetRequiredInputOffset(0);
  ...
}