更新时间:2021-03-18 GMT+08:00
FindOpByName
函数原型
ge::Operator FindOpByName(const string& name) const;
功能说明
根据算子的名称,返回Graph中的算子实例。
参数说明
参数名 |
输入/输出 |
类型 |
描述 |
---|---|---|---|
name |
输入 |
const string& |
需指定的算子名称。 |
返回值
参数名 |
类型 |
描述 |
---|---|---|
- |
ge::Operator |
如果Graph中包含对应名称算子,返回Graph中的这个算子;否则返回type为“NULL”的算子。 |
异常处理
无。
约束说明
无。
父主题: Graph类接口