当前位置:网站首页>MindSpore:【AIR模型导出】导出时提示源码中select_op参数类型转换失败
MindSpore:【AIR模型导出】导出时提示源码中select_op参数类型转换失败
2022-08-04 09:03:00 【小乐快乐】
问题描述:
【功能模块】
MindSpore - 模型导出 - AIR模型导出
【操作步骤&问题现象】
1、脚本在GPU和Ascend环境下正常运行,可以正常运行,结果也正常
2、Ascend中导出AIR模型时遭遇select算子Cast错误,脚本中并未使用select算子
【截图信息】
【日志信息】
[WARNING] GE_ADPT(143,python):2021-03-12-15:15:58.486.295 [mindspore/ccsrc/transform/graph_ir/op_adapter_util.cc:134] VectorToTensorUtil] Convert a none tuple to an empty ge tensor
[ERROR] GE_ADPT(143,python):2021-03-12-15:15:58.498.824 [mindspore/core/ir/anf.h:431] GetValue] Cast failed, original value: 101, type: Int32Imm
Traceback (most recent call last):
File "/home/work/user-job-dir/BLSBasic/BLSBasicTrainFor_1_0.py", line 325, in <module>
export(bls, train_data, train_label, file_name="bls.air", file_format='AIR')
File "/usr/local/ma/python3.7/lib/python3.7/site-packages/mindspore/train/serialization.py", line 537, in export
_export(net, file_name, file_format, *inputs)
File "/usr/local/ma/python3.7/lib/python3.7/site-packages/mindspore/train/serialization.py", line 562, in _export
graph_id, _ = _executor.compile(net, *inputs, phase=phase_name)
File "/usr/local/ma/python3.7/lib/python3.7/site-packages/mindspore/common/api.py", line 537, in compile
self._build_data_graph(obj, phase)
File "/usr/local/ma/python3.7/lib/python3.7/site-packages/mindspore/common/api.py", line 388, in _build_data_graph
self._executor.build_data_graph(obj.parameters_dict(), phase, obj.parameters_broadcast_dict())
RuntimeError: mindspore/core/ir/anf.h:431 GetValue] Cast failed, original value: 101, type: Int32Imm
# In file /usr/local/ma/python3.7/lib/python3.7/site-packages/mindspore/ops/composite/multitype_ops/_compile_utils.py(504)
return F.select(condition, u, data)
解决方案:
上述问题在MindSpore1.2版本中已得到修复,可以正常使用。
边栏推荐
- Grafana9.0发布,Prometheus和Loki查询生成器、全新导航、热图面板等新功能!
- ShuffleNet v2 network structure reproduction (Pytorch version)
- The difference between character stream and byte stream
- 发现WRH几个表被锁了,怎么办?
- Unity3D 数据加密
- The separation configuration Libpq is supported, speaking, reading and writing
- After four years of outsourcing, the autumn recruits finally landed
- 如何快速将Zabbix5.0升级至6.0?
- MATLAB绘图总结
- 并发编程之生产者和消费者问题
猜你喜欢
加降息与BTC流动性事件策略研究
PD 源码分析- Checker: region 健康卫士
After four years of outsourcing, the autumn recruits finally landed
TiFlash 源码阅读(五) DeltaTree 存储引擎设计及实现分析 - Part 2
王爽汇编语言第四章:第一个程序
DOM简述
VRRP+MSTP配置详解【华为eNSP实验】
抬升市场投资情绪,若羽臣是否还需“自身硬”?
【论文笔记】Understanding Long Programming Languages with Structure-Aware Sparse Attention
技术实现 | 图像检索及其在淘宝的应用
随机推荐
TiCDC迁移-TiDB到MySQL测试
Anton Paar Anton Paar Density Meter Hydrometer Repair DMA35 Performance Parameters
Detailed explanation of MSTP protocol configuration on Layer 3 switches [Huawei eNSP experiment]
智汇华云 | 华云软件定义网络 DCI介绍
ISO14443A读卡流程(作为示例参考)
技术实现 | 图像检索及其在淘宝的应用
获取cpu的核数
sql在字段重复时 对某个字段根据最新时间取数
Could you please talk about how the website is accessed?[Interview questions in the web field]
leetcode每天5题-Day06
MATLAB/Simulink快捷键
TiFlash 源码阅读(五) DeltaTree 存储引擎设计及实现分析 - Part 2
他97年的,我既然卷不过他...
如何设计一个注册中心
grafana手册之可视化配置图表table
从底层看 Redis 的五种数据类型
The separation configuration Libpq is supported, speaking, reading and writing
下午14:00面试,14:08低着头出来了 ,问的实在是太...
加降息与BTC流动性事件策略研究
关于Oracle RAC 11g重建磁盘组的问题