当前位置:网站首页>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
边栏推荐
猜你喜欢
机器学习(一)数据的预处理
IPQ4019/IPQ4029 support WiFi6 MiniPCIe Module 2T2R 2×2.4GHz 2x5GHz MT7915 MT7975
基于 VIVADO 的 AM 调制解调(1)方案设计
2022-08-10:为了给刷题的同学一些奖励,力扣团队引入了一个弹簧游戏机, 游戏机由 N 个特殊弹簧排成一排,编号为 0 到 N-1, 初始有一个小球在编号 0 的弹簧处。若小球在编号为 i 的弹
Analysis of the Status Quo of Enterprise Server Host Reinforcement
用 Antlr 重构脚本解释器
Typescript基本类型---上篇
Redis的客户端连接的可视化管理工具
如何通过 IDEA 数据库管理工具连接 TDengine?
JUC Concurrent Programming
随机推荐
Unity3D - modification of the Inspector panel of the custom class
Getting Started with Kotlin Algorithms Calculating Prime Factors
Kotlin算法入门计算水仙花数
js将table生成excel文件并去除表格中的多余tr(js去除表格中空的tr标签)
Contrastive Learning Series (3)-----SimCLR
基于 VIVADO 的 AM 调制解调(1)方案设计
For the first time, I suspect that there is a bug in selenium4 because the iframe element is not found?
MySQL性能调优,必须掌握这一个工具!!!(1分钟系列)
麒麟V10系统打包Qt免安装包程序
新一代开源免费的轻量级 SSH 终端,非常炫酷好用!
Typescript基本类型---上篇
链式编程注解
框架外的PHP读取.env文件(php5.6、7.3可用版)
pycharm中绘图,显示不了figure窗口的问题
Interview questions about Android Service
VoLTE基础自学系列 | 3GPP规范解读之Rx接口(上集)
笔试题大疆08.07
idea 方法注释:自定义修改method的return和params,void不显示
1.3版本自定义TrainOneStepCell报错
picker选择器出现object解决办法