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...