开发者
下载

GetRequiredInputTensor

产品支持情况

全量芯片支持。

头文件/库文件

  • 头文件:#include <exe_graph/runtime/op_compile_context.h>
  • 库文件:liblowering.so

功能说明

基于算子IR原型定义,获取REQUIRED_INPUT(必需输入)类型的输入Tensor指针,使用IR原型定义中的索引定位。

函数原型

1
const Tensor *GetRequiredInputTensor(size_t ir_index) const

参数说明

参数名

输入/输出

说明

ir_index

输入

IR原型定义中的索引。

返回值说明

输入Tensor指针,异常时返回空指针。

约束说明