Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

m1pro上使用gpu_type='mps' 报错 #625

Open
MonkeyMrge opened this issue Dec 19, 2024 · 1 comment
Open

m1pro上使用gpu_type='mps' 报错 #625

MonkeyMrge opened this issue Dec 19, 2024 · 1 comment

Comments

@MonkeyMrge
Copy link

报错信息:

File "/Time-Series-Library/exp/exp_short_term_forecasting.py", line 108, in train
loss.backward()
File "
/venv/lib/python3.9/site-packages/torch/_tensor.py", line 581, in backward
torch.autograd.backward(
File "/venv/lib/python3.9/site-packages/torch/autograd/init.py", line 347, in backward
_engine_run_backward(
File "
/venv/lib/python3.9/site-packages/torch/autograd/graph.py", line 825, in _engine_run_backward
return Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass
RuntimeError: view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Use .reshape(...) instead.

@wuhaixu2016
Copy link
Member

您好,这是运行哪个脚本呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants