当前位置:网站首页>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是报什么错呢?方便提供下你的脚本吗?我们优化下处理逻辑/报错更明确些。
边栏推荐
猜你喜欢

Recommendation | People who are kind to you, don't repay them by inviting them to eat

部分分类网络性能对比

C# wpf 无边框窗口添加阴影效果

NXP IMX8QXP更换DDR型号操作流程

【PHPWord】PHPOffice 套件之PHPWord快速入门

中集世联达工业级成熟航运港口人工智能AI产品规模化应用,打造新一代高效能智慧港口和创新数字港口,全球港航人工智能能领军者中集飞瞳
![[Prometheus] An optimization record of the Prometheus federation [continued]](/img/5d/56e171b7a02584337a0cfe5c731fb2.png)
[Prometheus] An optimization record of the Prometheus federation [continued]

Codeblocks + Widgets 创建窗口代码分析

MongoDB打破了原则引入SQL?

Talking about Contrastive Learning (Contrastive Learning) the first bullet
随机推荐
【网站放大镜效果】两种方式实现
LeetCode Exercise - Two Questions About Finding Sum of Array Elements
攻防世界web-Cat
6 yuan per catty, why do Japanese companies come to China to collect cigarette butts?
What is the value of biomedical papers? How to translate the papers into Chinese and English?
MySQL data types
【总结】1396- 60+个 VSCode 插件,打造好用的编辑器
Critical Reviews | 南农邹建文组综述全球农田土壤抗生素与耐药基因分布
架构师如何成长
NXP IMX8QXP replacement DDR model operation process
又一家公司面试的内容
Golang logging library zerolog use record
After 23 years of operation, the former "China's largest e-commerce website" has turned yellow...
Critical Reviews | A review of the global distribution of antibiotics and resistance genes in farmland soil by Nannong Zou Jianwen's group
VBA批量将Excel数据导入Access数据库
自己需要努力
The advanced version of the Niu Ke brushing series (team competition, sorting subsequences, inverting strings, deleting common characters, repairing pastures)
牛客刷题系列之进阶版(组队竞赛,排序子序列,倒置字符串, 删除公共字符,修理牧场)
Mysql执行原理剖析
7.29模拟赛总结