GetInputShape
函数功能
获取算子IR原型定义中类型为“INPUT”的输入shape,输入shape中包含了原始shape与运行时shape信息。
函数原型
const StorageShape *GetInputShape(const size_t index) const;
参数说明
参数  | 
输入/输出  | 
说明  | 
|---|---|---|
index  | 
输入  | 
算子IR原型定义中的输入索引,从0开始计数。  | 
约束说明
无
调用示例
ge::graphStatus TilingForMul(TilingContext *context) {
  auto input_shape_0 = *context->GetInputShape(0);
  auto input_shape_1 = *context->GetInputShape(1);
  auto output_shape = context->GetOutputShape(0);
  ...
}
父主题: TilingContext类