当前位置:网站首页>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版本中已得到修复,可以正常使用。
边栏推荐
- 一道[CSCCTF 2019 Qual]FlaskLight的详解再遇SSTI
- [Computer recording screen] How to use bandicam to record the game setting graphic tutorial
- MATLAB/Simulink快捷键
- 关于Oracle RAC 11g重建磁盘组的问题
- csdn图片去水印 | 其他方法无效时的解决方案
- 【高并发基石】多线程、守护线程、线程安全、线程同步、互斥锁
- 张朝阳对话俞敏洪:谈宇宙、谈焦虑、谈创业、谈退休、谈人生
- 路由/三层交换机DHCP下发地址详解【华为eNSP】
- grafana手册之可视化配置图表table
- LVGL's multi-language conversion tool -- a good assistant for font settings
猜你喜欢
![Detailed explanation of switch link aggregation [Huawei eNSP]](/img/c2/f9797fe8b17a418466b60cc3dc50a1.png)
Detailed explanation of switch link aggregation [Huawei eNSP]

2022年制冷与空调设备运行操作特种作业证考试题库及模拟考试

Post-94 Byte P7 posted the salary slip: It's really good to make up for this...

.NET深入解析LINQ框架(五:IQueryable、IQueryProvider接口详解)
![[Punctuality Atom STM32 Serial] Chapter 3 Development Environment Construction Excerpted from [Punctual Atom] MiniPro STM32H750 Development Guide_V1.1](/img/6f/c736a3404377961e92b3bd1b5ea90e.png)
[Punctuality Atom STM32 Serial] Chapter 3 Development Environment Construction Excerpted from [Punctual Atom] MiniPro STM32H750 Development Guide_V1.1

VRRP+MSTP配置详解【华为eNSP实验】

DOM简述
![Detailed explanation of MSTP protocol configuration on Layer 3 switches [Huawei eNSP experiment]](/img/97/6c3662ef36b02bc42eec95abaa6bc5.png)
Detailed explanation of MSTP protocol configuration on Layer 3 switches [Huawei eNSP experiment]
![[Punctuality Atom STM32 Serial] Chapter 4 STM32 First Experience Excerpted from [Punctual Atom] MiniPro STM32H750 Development Guide_V1.1](/img/99/928e86f8a61a905a899dd5d3880def.png)
[Punctuality Atom STM32 Serial] Chapter 4 STM32 First Experience Excerpted from [Punctual Atom] MiniPro STM32H750 Development Guide_V1.1

菲沃泰科创板上市:市值123亿 宗坚赵静艳夫妇身价76亿
随机推荐
关于Oracle RAC 11g重建磁盘组的问题
spark算子讲解
leetcode每天5题-Day06
TiCDC同步延迟问题处理
[NOI Simulation Competition] Paper Tiger Game (Game Theory SG Function, Long Chain Division)
binder通信实现
How Oracle for current library or certain library data on the same server number?
区分惯性环节与延迟环节
[STM32] STM32F103 series name and package, memory
Recommend several methods that can directly translate PDF English documents
VRRP + MSTP configuration, huawei eNSP experiment 】 【
【正点原子STM32连载】第四章 STM32初体验 摘自【正点原子】MiniPro STM32H750 开发指南_V1.1
Anton Paar Anton Paar Density Meter Hydrometer Repair DMA35 Performance Parameters
Shared_preload_libraries导致很多语法不支持
Linux Redis cache avalanche, breakdown, penetration
抬升市场投资情绪,若羽臣是否还需“自身硬”?
【高并发基石】多线程、守护线程、线程安全、线程同步、互斥锁
Post-94 Byte P7 posted the salary slip: It's really good to make up for this...
TCP的四次挥手
三层交换机配置MSTP协议详解【华为eNSP实验】