当前位置:网站首页>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是报什么错呢?方便提供下你的脚本吗?我们优化下处理逻辑/报错更明确些。
边栏推荐
- Swiper轮播图片并播放背景音乐
- The advanced version of the Niu Ke brushing series (team competition, sorting subsequences, inverting strings, deleting common characters, repairing pastures)
- 尊重客观事实
- Swiper rotates pictures and plays background music
- 【Prometheus】Prometheus联邦的一次优化记录[续]
- Mysql执行原理剖析
- Scrapy framework is introduced
- Google's AlphaFold claims to have predicted almost every protein structure on Earth
- Object和Map的区别
- Pytorch基础--tensorboard使用(一)
猜你喜欢

微信小程序云开发 | 城市信息管理

MySQL data types

6块钱1斤,日本公司为何来中国收烟头?

电脑死机的时候,发生了什么?

NC | Tao Liang Group of West Lake University - TMPRSS2 "assists" virus infection and mediates the host invasion of Clostridium sothrix hemorrhagic toxin...

Mysql execution principle analysis

牛客刷题系列之进阶版(搜索旋转排序数组,链表内指定区间反转)

Codeblocks + Widgets create window code analysis

荐号 | 对你有恩的人,不要请吃饭来报答

防抖和节流有什么区别,分别用于什么场景?
随机推荐
【科普】无线电波怎样传送信息?
WeChat Mini Program Cloud Development | Urban Information Management
DM8: Single database and single instance to build a local data guard service
SimpleOSS第三方库libcurl与引擎libcurl错误解决方法
golang日志库zerolog使用记录
[Use of Qt Designer tool]
What is a RESTful API?
MongoDB打破了原则引入SQL?
Spark学习:编译Spark项目时遇到的报错
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!
Vulkan开启特征(feature)的正确姿势
Anaconda Navigator stuck on loading applications
攻防世界web-Cat
你好,我的新名字叫“铜锁/Tongsuo”
牛客刷题系列之进阶版(搜索旋转排序数组,链表内指定区间反转)
kotlin的by lazy
Entering the applet for the first time
Pytorch foundation -- tensorboard use (1)
Scala学习:类和对象
【Swords Offer】Swords Offer 17. Print n digits from 1 to the largest