You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
报错信息:
File "
/Time-Series-Library/exp/exp_short_term_forecasting.py", line 108, in train/venv/lib/python3.9/site-packages/torch/_tensor.py", line 581, in backwardloss.backward()
File "
torch.autograd.backward(
File "
/venv/lib/python3.9/site-packages/torch/autograd/init.py", line 347, in backward/venv/lib/python3.9/site-packages/torch/autograd/graph.py", line 825, in _engine_run_backward_engine_run_backward(
File "
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.
The text was updated successfully, but these errors were encountered: