1 报错形容1.1 零碎环境ardware Environment(Ascend/GPU/CPU): CPUSoftware Environment:– MindSpore version (source or binary): 1.6.0– Python version (e.g., Python 3.7.5): 3.7.6– 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脚本此案例将自定义数据集转化成MindSpore Record数据格式。
1.2.2报错RuntimeError: Syntax error. Invalid data, Page size: 1048576 is too small to save a blob row. Please try to use the mindrecord api ‘set_page_size’ to enable 64MB page size.Line of code : 1153
2 起因剖析依据报错信息提醒,Pagesize设置太小导致无奈读取那么多数据。3 解决办法参考提供的set_page_size API,将pagesize设置大一点。
4 总结1.设置示意存储数据的区域的页面的大小,这些区域分为两种类型:row page和blob page。页面越大,能够存储的数据就越多。2.不设置pagesize的时候,默认可储存样本大小为32MB,如果样本的大小大于默认大小,用户须要调用API来设置适当的大小。3.pagesize可调节范畴在321024(32KB)至2561024*1024(256MB)。5 参考文档mindspore文档->API->mindspore.mindrecord->set_page_sizehttps://mindspore.cn/docs/zh-...