返回顶部 GetOptionalInputTensor 头文件/库文件头文件:#include <exe_graph/runtime/eager_op_execution_context.h>库文件:待补充 功能说明基于算子IR原型定义,获取OPTIONAL_INPUT类型的输入tensor指针。 函数原型1const Tensor *GetOptionalInputTensor(size_t ir_index) const 参数说明 参数名 输入/输出 描述 ir_index 输入 IR原型定义中的index。 返回值说明Tensor指针,异常时返回空指针。 约束说明无 父主题: EagerOpExecutionContext