UpdateDynamicInputDesc
函数原型
graphStatus UpdateDynamicInputDesc(const string& name, const unsigned int index, const TensorDesc& tensorDesc);
功能说明
根据name和index的组合更新动态Input的TensorDesc。
参数说明
参数名 |
输入/输出 |
类型 |
描述 |
---|---|---|---|
name |
输入 |
const string& |
算子动态Input的名称 |
index |
输入 |
const unsigned int |
算子动态Input编号,编号从1开始 |
tensorDesc |
输入 |
const TensorDesc& |
TensorDesc对象 |
返回值
参数名 |
类型 |
描述(参数说明、取值范围等) |
---|---|---|
- |
graphStatus |
更新动态Input成功,返回GRAPH_SUCCESS, 否则,返回GRAPH_FAILED。 |
异常处理
无。
约束说明
无。