文档
注册

aclgrphParseTensorFlow

函数功能

将TensorFlow模型解析为图。

函数原型

graphStatus aclgrphParseTensorFlow(const char *model_file, ge::Graph &graph);
graphStatus aclgrphParseTensorFlow(const char *model_file, const std::map<ge::AscendString, ge::AscendString> &parser_params, ge::Graph &graph);

约束说明

使用该接口解析的Graph,graph name中会包含时间戳,因此多次调用该接口,graph name会不同。

参数说明

参数名

输入/输出

描述

model_file

输入

TensorFlow原始模型文件路径。

parser_params

输入

配置参数map映射表,key为参数类型,value为参数值,均为AscendString格式,用于描述原始模型解析参数。

map中支持的配置参数请参见Parser解析接口支持的配置参数

graph

输出

解析后生成的图。

返回值

参数名

类型

描述

-

graphStatus

0:成功。

其他值:失败。

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

当前产品无相关内容

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