当前位置:网站首页>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是报什么错呢?方便提供下你的脚本吗?我们优化下处理逻辑/报错更明确些。
边栏推荐
- [Prometheus] An optimization record of the Prometheus federation [continued]
- Read the "Language Model" in one article
- 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
- 【Prometheus】Prometheus联邦的一次优化记录[续]
- 不同的路径依赖
- Node encapsulates a console progress bar plugin
- Immersive experience iFLYTEK 2022 Consumer Expo "Official Designated Product"
- 【Pointing to Offer】Pointing to Offer 18. Delete the node of the linked list
- golang日志库zerolog使用记录
- [TypeScript]编译配置
猜你喜欢
Deepen school-enterprise cooperation and build an "overpass" for the growth of technical and skilled talents
【剑指 Offer】剑指 Offer 22. 链表中倒数第k个节点
VBA 运行时错误‘-2147217900(80040e14):自动化(Automation)错误
解决终极bug,项目最终能顺利部署上线。
电脑死机的时候,发生了什么?
浅聊对比学习(Contrastive Learning)第一弹
VS Code connects to SQL Server
Recommendation | People who are kind to you, don't repay them by inviting them to eat
防抖和节流有什么区别,分别用于什么场景?
kotlin by lazy
随机推荐
Listen to the boot broadcast
【剑指 Offer】剑指 Offer 22. 链表中倒数第k个节点
Chapter 4 Controlling the Execution Flow
Go 系统收集
2种手绘风格效果比较,你更喜欢哪一种呢?
Talking about Contrastive Learning (Contrastive Learning) the first bullet
7.30模拟赛总结
【刷题篇】计算质数
node封装一个控制台进度条插件
Difference between Object and Map
crontab中写go run不执行的问题
运营 23 年,昔日“国内第一大电商网站”黄了...
Critical Reviews | A review of the global distribution of antibiotics and resistance genes in farmland soil by Nannong Zou Jianwen's group
"Ruffian Heng Embedded Bimonthly" Issue 59
Common linked list problems and their Go implementation
延时队列优化 (2)
MySQL data types
VBA批量将Excel数据导入Access数据库
MYSQL(基本篇)——一篇文章带你走进MYSQL的奇妙世界
【Prometheus】Prometheus联邦的一次优化记录[续]