GetInputTensor
产品支持情况
全量芯片支持。
头文件/库文件
- 头文件:#include <exe_graph/runtime/op_compile_context.h>
- 库文件:liblowering.so
功能说明
根据输入索引获取对应位置的输入Tensor指针。
函数原型
1 | const Tensor *GetInputTensor(size_t index) const |
参数说明
参数名 |
输入/输出 |
说明 |
|---|---|---|
index |
输入 |
输入索引。 |
返回值说明
输入Tensor指针,异常时返回空指针。
约束说明
无
父主题: OpCompileContext