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
Traceback (most recent call last):
File "run.py", line 132, in
exp.train(setting)
File "C:\Users\ZRCC\Desktop\kk\iTransformer-main\iTransformer-main\experiments\exp_long_term_forecasting.py", line 108, in train
for i, (batch_x, batch_y, batch_x_mark, batch_y_mark) in enumerate(train_loader):
File "F:\shuoAPP\anaconda\envs\itr\lib\site-packages\torch\utils\data\dataloader.py", line 634, in next
data = self._next_data()
File "F:\shuoAPP\anaconda\envs\itr\lib\site-packages\torch\utils\data\dataloader.py", line 678, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "F:\shuoAPP\anaconda\envs\itr\lib\site-packages\torch\utils\data_utils\fetch.py", line 54, in fetch
return self.collate_fn(data)
File "F:\shuoAPP\anaconda\envs\itr\lib\site-packages\torch\utils\data_utils\collate.py", line 264, in default_collate
return collate(batch, collate_fn_map=default_collate_fn_map)
File "F:\shuoAPP\anaconda\envs\itr\lib\site-packages\torch\utils\data_utils\collate.py", line 142, in collate
return [collate(samples, collate_fn_map=collate_fn_map) for samples in transposed] # Backwards compatibility.
File "F:\shuoAPP\anaconda\envs\itr\lib\site-packages\torch\utils\data_utils\collate.py", line 142, in
return [collate(samples, collate_fn_map=collate_fn_map) for samples in transposed] # Backwards compatibility.
File "F:\shuoAPP\anaconda\envs\itr\lib\site-packages\torch\utils\data_utils\collate.py", line 119, in collate
return collate_fn_map[elem_type](batch, collate_fn_map=collate_fn_map)
File "F:\shuoAPP\anaconda\envs\itr\lib\site-packages\torch\utils\data_utils\collate.py", line 171, in collate_numpy_array_fn
return collate([torch.as_tensor(b) for b in batch], collate_fn_map=collate_fn_map)
File "F:\shuoAPP\anaconda\envs\itr\lib\site-packages\torch\utils\data_utils\collate.py", line 119, in collate
return collate_fn_map[elem_type](batch, collate_fn_map=collate_fn_map)
File "F:\shuoAPP\anaconda\envs\itr\lib\site-packages\torch\utils\data_utils\collate.py", line 162, in collate_tensor_fn
return torch.stack(batch, 0, out=out)
RuntimeError: stack expects each tensor to be equal size, but got [63, 52] at entry 0 and [0, 52] at entry 26
The text was updated successfully, but these errors were encountered:
Traceback (most recent call last):
File "run.py", line 132, in
exp.train(setting)
File "C:\Users\ZRCC\Desktop\kk\iTransformer-main\iTransformer-main\experiments\exp_long_term_forecasting.py", line 108, in train
for i, (batch_x, batch_y, batch_x_mark, batch_y_mark) in enumerate(train_loader):
File "F:\shuoAPP\anaconda\envs\itr\lib\site-packages\torch\utils\data\dataloader.py", line 634, in next
data = self._next_data()
File "F:\shuoAPP\anaconda\envs\itr\lib\site-packages\torch\utils\data\dataloader.py", line 678, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "F:\shuoAPP\anaconda\envs\itr\lib\site-packages\torch\utils\data_utils\fetch.py", line 54, in fetch
return self.collate_fn(data)
File "F:\shuoAPP\anaconda\envs\itr\lib\site-packages\torch\utils\data_utils\collate.py", line 264, in default_collate
return collate(batch, collate_fn_map=default_collate_fn_map)
File "F:\shuoAPP\anaconda\envs\itr\lib\site-packages\torch\utils\data_utils\collate.py", line 142, in collate
return [collate(samples, collate_fn_map=collate_fn_map) for samples in transposed] # Backwards compatibility.
File "F:\shuoAPP\anaconda\envs\itr\lib\site-packages\torch\utils\data_utils\collate.py", line 142, in
return [collate(samples, collate_fn_map=collate_fn_map) for samples in transposed] # Backwards compatibility.
File "F:\shuoAPP\anaconda\envs\itr\lib\site-packages\torch\utils\data_utils\collate.py", line 119, in collate
return collate_fn_map[elem_type](batch, collate_fn_map=collate_fn_map)
File "F:\shuoAPP\anaconda\envs\itr\lib\site-packages\torch\utils\data_utils\collate.py", line 171, in collate_numpy_array_fn
return collate([torch.as_tensor(b) for b in batch], collate_fn_map=collate_fn_map)
File "F:\shuoAPP\anaconda\envs\itr\lib\site-packages\torch\utils\data_utils\collate.py", line 119, in collate
return collate_fn_map[elem_type](batch, collate_fn_map=collate_fn_map)
File "F:\shuoAPP\anaconda\envs\itr\lib\site-packages\torch\utils\data_utils\collate.py", line 162, in collate_tensor_fn
return torch.stack(batch, 0, out=out)
RuntimeError: stack expects each tensor to be equal size, but got [63, 52] at entry 0 and [0, 52] at entry 26
The text was updated successfully, but these errors were encountered: