当前位置:网站首页>mindspore 执行模型转换为310的mindir文件显示无LRN算子
mindspore 执行模型转换为310的mindir文件显示无LRN算子
2022-08-11 08:52:00 【小乐快乐】
模型使用了Local Response Normalization 即mindspore.ops.LRN算子
r1.5 api地址mindspore.ops.LRN

【截图信息】
网络部分代码:
self.LRN = P.LRN()
x = self.conv1(x) x = self.relu(x) x = self.LRN(x) x = self.max_pool2d(x) x = self.conv2(x) x = self.relu(x) x = self.LRN(x) x = self.max_pool2d(x) x = self.conv3(x) x = self.relu(x) x = self.conv4(x) x = self.relu(x) x = self.conv5(x) x = self.relu(x)
转换模型代码:
param_dict = load_checkpoint(args.ckpt_file) load_param_into_net(network, param_dict) input_arr = Tensor(np.zeros([args.batch_size, 3, cfg.image_height, cfg.image_width]), ms.float32) export(network, input_arr, file_name=args.file_name, file_format=args.file_format)
报错信息

能导出MindIR的话,可以试一下用MindIR推理。 可以参考下这个:https://mindspore.cn/tutorials/zh-CN/master/inference.html
边栏推荐
- Song of the Cactus - Massive Rapid Expansion (1)
- picker选择器出现object解决办法
- 深度学习100例 —— 卷积神经网络(CNN)识别眼睛状态
- 用 Antlr 重构脚本解释器
- Kotlin算法入门求自由落体
- 表达式必须具有与对应表达式相同的数据类型
- One network cable to transfer files between two computers
- 《价值》读书与投资
- 借问变量何处存,牧童笑称用指针,Go lang1.18入门精炼教程,由白丁入鸿儒,go lang类型指针(Pointer)的使用EP05
- C Primer Plus(6) 中文版 第1章 初识C语言 1.6 语言标准
猜你喜欢
随机推荐
Birth of the Go language
表达式必须具有与对应表达式相同的数据类型
兼容并蓄广纳百川,Go lang1.18入门精炼教程,由白丁入鸿儒,go lang复合容器类型的声明和使用EP04
装饰器模式:Swift 实现
STM32之串口传输结构体
[C语言] sscanf如何实现sscanf_s?
magical_spider远程采集方案
@RequiredArgsConstructor注解
Kotlin算法入门求完全数
基于 VIVADO 的 AM 调制解调(3)仿真验证
MySQL性能调优,必须掌握这一个工具!!!(1分钟系列)
excel将数据按某一列值分组并绘制分组折线图
nodejs微服务中跨域,请求,接口,参数拦截等功能
链式编程注解
Audio and video + AI, Zhongguancun Kejin helps a bank explore a new development path | Case study
Has legal counsel become a tasteless product of law firms?
基础SQL——DDL
tar 命令使用
当你领导问你“还有其他的么”
2022-08-09 顾宇佳 学习笔记









