GetInputTensor
函数功能
获取指定输入的tensor。
函数原型
const Tensor *GetInputTensor(const size_t index) const;
参数说明
参数 |
输入/输出 |
说明 |
|---|---|---|
index |
输入 |
算子IR原型定义中的输入索引,从0开始计数。 |
调用示例
ge::graphStatus Tiling4ReduceCommon(TilingContext* context) {
auto in_shape = context->GetInputShape(0);
GE_ASSERT_NOTNULL(in_shape);
auto axes_tensor = context->GetInputTensor(1);
...
}
父主题: TilingContext类