文档
注册

FindOpByType

函数功能

基于算子类型,获取缓存在Graph中的所有指定类型的op对象。

函数原型

数据类型为string的接口后续版本会废弃,建议使用数据类型为非string的接口。

graphStatus FindOpByType(const string &type, std::vector<ge::Operator> &ops) const;
graphStatus FindOpByType(const char *type, std::vector<ge::Operator> &ops) const;

参数说明

参数名

输入/输出

描述

type

输入

需要获取的算子类型。

ops

输出

返回用户所需要的op对象。

返回值

参数名

类型

描述

-

graphStatus

GRAPH_SUCCESS(0): 成功。

其他值:失败。

搜索结果
找到“0”个结果

当前产品无相关内容

未找到相关内容,请尝试其他搜索词