RequiredInputIsView
Function Usage
Obtains whether a required input tensor carries discontinuous description information based on the input index in the operator prototype definition.
This API is reserved for future use and not supported in the current version.
Prototype
1 | bool RequiredInputIsView(const size_t ir_index) const |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
ir_index |
Input |
Index of the required input in the operator IR prototype definition, starting from 0. |
Returns
Whether the input tensor of the specified ir_index carries discontinuous description information.
- true: The input tensor of the specified ir_index carries discontinuous description information.
- false: The specified ir_index is invalid, the input is not instantiated, or the tensor does not carry non-contiguous description information.
Constraints
None
Examples
1 2 3 4 | ge::graphStatus TilingForMul(TilingContext *context) { bool required_input_is_view_0 = context->RequiredInputIsView(0); ... } |
Parent topic: TilingContext