InputIsView
Function Usage
Obtains whether an input carries discontinuous information based on the operator input index. The input index refers to the actual index after operator instantiation, not the index in the prototype definition.
Prototype
1 | bool InputIsView(const size_t index) const |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
index |
Input |
Operator input index, starting from 0. |
Returns
Whether the input tensor carries discontinuous description information.
- true: The input tensor carries discontinuous description information.
- false: The index is invalid or the input tensor does not carry discontinuous description information.
Constraints
None
Examples
1 2 3 4 | ge::graphStatus TilingForMul(TilingContext *context) { bool input_is_view_0 = context->InputIsView(0); ... } |
Parent topic: TilingContext