获取TensorDesc所描述Tensor的名称。
数据类型为string的接口后续版本会废弃,建议使用数据类型为非string的接口。
1 2 3 | std::string GetName() const
graphStatus GetName(AscendString &name)
graphStatus GetName(AscendString &name) const
|
参数名 |
输入/输出 |
描述 |
---|---|---|
name |
输出 |
算子名称。 |
graphStatus类型:获取name成功,返回GRAPH_SUCCESS,否则,返回GRAPH_FAILED。
无。
无。