当前位置:网站首页>MindSpore:自定义dataset的tensor问题
MindSpore:自定义dataset的tensor问题
2022-07-30 19:04:00 【小乐快乐】
问题描述:
【功能模块】
【操作步骤&问题现象】
1、在自定义Dataset中,按照例子IterGeneratorDataset,要是self.__data类型为list(array),数据就可以按照create_dict_iterator()输出,如果self.__data类型为list(Tensor)就不行,会出错,要不就是一直运行不结束
2、
【截图信息】
【日志信息】(可选,上传日志内容或者附件)
解决方案:
我们目前的设计__next__输出的数据是tuple(ndarry, ndarray, ...)
你现在用tensor是报什么错呢?方便提供下你的脚本吗?我们优化下处理逻辑/报错更明确些。
边栏推荐
- 设计消息队列存储消息数据的 MySQL 表格
- WeChat Mini Program Cloud Development | Urban Information Management
- Entering the applet for the first time
- DM8: Single database and single instance to build a local data guard service
- 【科普】无线电波怎样传送信息?
- 启动前台Activity
- 延时队列优化 (2)
- Object和Map的区别
- Scala学习:breakable
- JS提升:Promise中reject与then之间的关系
猜你喜欢
scrapy基本使用
生物医学论文有何价值 论文中译英怎样翻译效果好
第十七届“振兴杯”全国青年 职业技能大赛——计算机程序设计员(云计算平台与运维)参赛回顾与总结
The Meta metaverse division lost 2.8 billion in the second quarter!Still want to keep betting?Metaverse development has yet to see a way out!
VBA批量将Excel数据导入Access数据库
基于inquirer封装一个控制台文件选择器
【剑指 Offe】剑指 Offer 18. 删除链表的节点
MongoDB打破了原则引入SQL?
Does the satellite phone communicate directly with the satellite or through a ground station?
运营 23 年,昔日“国内第一大电商网站”黄了...
随机推荐
Go system collection
监听开机广播
Range.CopyFromRecordset 方法 (Excel)
【剑指 Offe】剑指 Offer 18. 删除链表的节点
C# wpf 无边框窗口添加阴影效果
[Use of Qt Designer tool]
Node encapsulates a console progress bar plugin
牛客刷题系列之进阶版(搜索旋转排序数组,链表内指定区间反转)
一文读懂“语言模型”
你好,我的新名字叫“铜锁/Tongsuo”
"Ruffian Heng Embedded Bimonthly" Issue 59
CIMC Shilian Dafeitong is the global industrial artificial intelligence AI leader, the world's top AI core technology, high generalization, high robustness, sparse sample continuous learning, industri
7.29模拟赛总结
requet.getHeader(“token“) 为null
SwiftUI iOS 精品开源项目之 完整烘焙食品菜谱App基于SQLite(教程含源码)
几个GTest、GMock的例子
vxe-table实现复选框鼠标拖动选中
Another company interview
MongoDB打破了原则引入SQL?
Tensorflow2.0 混淆矩阵与打印准确率不符