昇腾社区首页
中文
注册
开发者
下载

GetInputTensor

头文件/库文件

  • 头文件:#include <exe_graph/runtime/eager_op_execution_context.h>
  • 库文件:待补充

功能说明

根据输入index,获取输入tensor指针。

函数原型

1
const Tensor *GetInputTensor(size_t index) const

参数说明

参数名

输入/输出

描述

index

输入

输入index。

返回值说明

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

约束说明