Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Obtains the pointer to a required input shape based on the input index in the operator prototype definition.
- const StorageShape *GetRequiredInputShape(const size_t ir_index) const;
| Parameter | Input/Output | Description |
|---|---|---|
| ir_index | Input | Index of the required input in the operator IR prototype definition, starting from 0. |
Pointer to the specified input shape. The input shape contains the original shape and storage shape information. For details about the definition of the StorageShape type, see StorageShape.
If the input ir_index is invalid, a null pointer is returned.
None
- ge::graphStatus InferShape4ConcatD(TilingContext* context) {
- auto in_shape = context->GetRequiredInputShape(0);
- // ...
- }