Traceback (most recent call last): File "C:\Users\liaoshuyu\Desktop\python_for_bigginer\5.22.py", line 23, in <module> train_out_flow = np.reshape(train_out_flow, (train_out_flow.shape[0], 5, 109, 109, 1)) File "<__array_function__ internals>", line 180, in reshape File "C:\Users\liaoshuyu\Desktop\python_for_bigginer\venv\lib\site-packages\numpy\core\fromnumeric.py", line 298, in reshape return _wrapfunc(a, 'reshape', newshape, order=order) File "C:\Users\liaoshuyu\Desktop\python_for_bigginer\venv\lib\site-packages\numpy\core\fromnumeric.py", line 57, in _wrapfunc return bound(*args, **kwds) ValueError: cannot reshape array of size 109000 into shape (200,5,109,109,1)
时间: 2023-07-21 15:02:51 浏览: 218
Python库 | friendly_traceback-0.4.67-py3-none-any.whl
这个错误提示是在运行 reshape 函数时出现的。出错的原因是无法将大小为 109000 的数组转换为形状为 (200, 5, 109, 109, 1) 的数组。可能是因为输入的 train_out_flow 数据维度不匹配,或者是数据本身的问题。建议检查一下输入数据的维度和大小是否正确,并重新调整数据形状。
阅读全文