根据算子Input名称更新Input的TensorDesc。
数据类型为string的接口后续版本会废弃,建议使用数据类型为非string的接口。
graphStatus UpdateInputDesc(const string& name, const TensorDesc& tensor_desc);
graphStatus UpdateInputDesc(const char *name, const TensorDesc &tensor_desc);
参数名 |
输入/输出 |
描述 |
---|---|---|
name |
输入 |
算子Input名称。 |
tensor_desc |
输入 |
TensorDesc对象。 |
参数名 |
类型 |
描述 |
---|---|---|
- |
graphStatus |
更新TensorDesc成功,返回GRAPH_SUCCESS, 否则,返回GRAPH_FAILED。 |
异常场景 |
说明 |
---|---|
无对应name 输入 |
函数提前结束,返回GRAPH_FAILED。 |
无。