zhengdaoli / AGC-net

AGC-Net (Adaptive Graph Convolution Networks) is an advanced model designed to predict traffic flow. Dataset: METR-LA, PEMS-BAY
10 stars 1 forks source link

einsum(): operands do not broadcast with remapped shapes #2

Open Chloe-Liu33 opened 1 year ago

Chloe-Liu33 commented 1 year ago

hello ,when run the code according to your README.md on dataset METR-LA, I encountered the bug. When I run the code on my own dataset, the same bug occured again. 微信图片_20231015121157

wsh9352 commented 1 year ago

It seems that line 361-367 of the following codes in model.py should be deleted.

x = torch.einsum('bnft, knm -> bkmft', x, wavelets)
x = torch.einsum('bkmft, kfo -> bk')
x = torch.einsum('bknft, k -> bnft', x, self.Gate)     

a = torch.einsum('fs, bknf -> bkns', self.Att_W, xs)
a = torch.einsum('bkns, ks -> bkn', xs, self.Att_U)

And there is an additional argument _adjfile that refers to the location of the adjacency matrix data, should actually be appointed.