关于深度学习:MindSpore报错ValueErrorinvalid-literal-for-intwith-base10the

2次阅读

共计 568 个字符,预计需要花费 2 分钟才能阅读完成。

1 报错形容 1.1 零碎环境 Hardware Environment(Ascend/GPU/CPU): GPUSoftware Environment:– MindSpore version (source or binary): 1.2.0– Python version (e.g., Python 3.7.5): 3.7.5– OS platform and distribution (e.g., Linux Ubuntu 16.04): Ubuntu 4.15.0-74-generic– GCC/Compiler version (if compiled from source):1.2 根本信息 1.2.1 源码 https://gitee.com/mindspore/m… 报错报错信息:ValueError:invalid literal for int()with base10’the’.

2 起因剖析未依照教程解决数据集,README 里阐明了须要对数据集增加一行,用来读取 40 万个单词,每个单词由 300 维度的词向量来示意。3 解决办法在 glove.6B.300d.txt 文件的第一行之前插入一行:400000 300

4 总结运行官网教程中 model 时,尽量做到对照 README 中的步骤去执行,脱漏了数据处理的步骤可能导致报错。5 参考文档 https://gitee.com/mindspore/m…

正文完
 0