Not watched
363
0

#13 GeneratorDataset 保存数据后,读入到MindDataset,能读,不能用

Closed
created 3 years ago by wdxwj · 1 comments
wdxwj commented 3 years ago
读入后,调用create_dict_iterator()后,报错如下: [ERROR] CORE(71988,python):2021-03-17-16:06:00.176.803 [mindspore/core/utils/status.cc:43] Status] Thread ID 281469350748640 Unexpected error. Requested shape has an invalid element count! Line of code : 159 File : /home/jenkins/agent-working-dir/workspace/Compile_Ascend_ARM_EulerOS/mindspore/mindspore/ccsrc/minddata/dataset/engine/data_schema.cc [ERROR] CORE(71988,python):2021-03-17-16:06:00.176.819 [mindspore/core/utils/status.cc:43] Status] Thread ID 281471993590240 Unexpected error. Requested shape has an invalid element count! Line of code : 159 File : /home/jenkins/agent-working-dir/workspace/Compile_Ascend_ARM_EulerOS/mindspore/mindspore/ccsrc/minddata/dataset/engine/data_schema.cc [ERROR] CORE(71988,python):2021-03-17-16:06:00.176.826 [mindspore/core/utils/status.cc:43] Status] Thread ID 281471968420320 Unexpected error. Requested shape has an invalid element count! Line of code : 159 File : /home/jenkins/agent-working-dir/workspace/Compile_Ascend_ARM_EulerOS/mindspore/mindspore/ccsrc/minddata/dataset/engine/data_schema.cc [ERROR] CORE(71988,python):2021-03-17-16:06:00.176.826 [mindspore/core/utils/status.cc:43] Status] Thread ID 281472018760160 Unexpected error. Requested shape has an invalid element count! Line of code : 159 File : /home/jenkins/agent-working-dir/workspace/Compile_Ascend_ARM_EulerOS/mindspore/mindspore/ccsrc/minddata/dataset/engine/data_schema.cc [ERROR] CORE(71988,python):2021-03-17-16:06:00.176.813 [mindspore/core/utils/status.cc:43] Status] Thread ID 281469342355936 Unexpected error. Requested shape has an invalid element count! Line of code : 159 File : /home/jenkins/agent-working-dir/workspace/Compile_Ascend_ARM_EulerOS/mindspore/mindspore/ccsrc/minddata/dataset/engine/data_schema.cc [ERROR] ME(71988:281473148630768,MainProcess):2021-03-17-16:06:00.177.672 [mindspore/dataset/engine/iterators.py:172] Got runtime err: Thread ID 281469350748640 Unexpected error. Requested shape has an invalid element count! Line of code : 159 File : /home/jenkins/agent-working-dir/workspace/Compile_Ascend_ARM_EulerOS/mindspore/mindspore/ccsrc/minddata/dataset/engine/data_schema.cc . Traceback (most recent call last): File "/home/yyp/archiconda3/envs/mindspore/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/home/yyp/archiconda3/envs/mindspore/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/yyp/.vscode-server/extensions/ms-python.python-2021.3.658691958/pythonFiles/lib/python/debugpy/__main__.py", line 45, in <module> cli.main() File "/home/yyp/.vscode-server/extensions/ms-python.python-2021.3.658691958/pythonFiles/lib/python/debugpy/../debugpy/server/cli.py", line 444, in main run() File "/home/yyp/.vscode-server/extensions/ms-python.python-2021.3.658691958/pythonFiles/lib/python/debugpy/../debugpy/server/cli.py", line 285, in run_file runpy.run_path(target_as_str, run_name=compat.force_str("__main__")) File "/home/yyp/archiconda3/envs/mindspore/lib/python3.7/runpy.py", line 263, in run_path pkg_name=pkg_name, script_name=fname) File "/home/yyp/archiconda3/envs/mindspore/lib/python3.7/runpy.py", line 96, in _run_module_code mod_name, mod_spec, pkg_name, script_name) File "/home/yyp/archiconda3/envs/mindspore/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "mtl_run.py", line 253, in <module> for i in joint_generator.create_dict_iterator(): File "/home/yyp/archiconda3/envs/mindspore/lib/python3.7/site-packages/mindspore/dataset/engine/iterators.py", line 125, in __next__ data = self._get_next() File "/home/yyp/archiconda3/envs/mindspore/lib/python3.7/site-packages/mindspore/dataset/engine/iterators.py", line 177, in _get_next raise err File "/home/yyp/archiconda3/envs/mindspore/lib/python3.7/site-packages/mindspore/dataset/engine/iterators.py", line 169, in _get_next return {k: self._transform_tensor(t) for k, t in self._iterator.GetNextAsMap().items()} RuntimeError: Thread ID 281469350748640 Unexpected error. Requested shape has an invalid element count! Line of code : 159 File : /home/jenkins/agent-working-dir/workspace/Compile_Ascend_ARM_EulerOS/mindspore/mindspore/ccsrc/minddata/dataset/engine/data_schema.cc
wdxwj commented 3 years ago
Poster
原因找到了,写入不支持shape为-1
wdxwj closed this issue 3 years ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.