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
I'm trying out your code to gain a better understanding of the whole concept, but I get an error:
---------------------------------------------------------------------------NameErrorTraceback (mostrecentcalllast)
<ipython-input-21-5955e675779a>in<module>2back_length=33Clamp_A=False---->4gclstm=GraphConvolutionalLSTM(K, torch.Tensor(A), FFR[back_length], A.shape[0], Clamp_A=Clamp_A, output_last=True)
5gclstm, gclstm_loss=TrainModel(gclstm, train_dataloader, valid_dataloader, num_epochs=1)
6gclstm_test=TestModel(gclstm, test_dataloader, max_speed )
<ipython-input-17-b87e6355c7f7>in__init__(self, K, A, FFR, feature_size, Clamp_A, output_last)
2829# a length adjustable Module List for hosting all graph convolutions--->30self.gc_list=nn.ModuleList([FilterLinear(feature_size, feature_size, self.A_list[i], bias=False) foriinrange(K)])
3132hidden_size=self.feature_size<ipython-input-17-b87e6355c7f7>in<listcomp>(.0)
2829# a length adjustable Module List for hosting all graph convolutions--->30self.gc_list=nn.ModuleList([FilterLinear(feature_size, feature_size, self.A_list[i], bias=False) foriinrange(K)])
3132hidden_size=self.feature_sizeNameError: name'FilterLinear'isnotdefined
FilterLinear is not something you defined, and it's not something you import either. Do you remember where it comes from?
Obviously, since it's been a while since you posted your code I am not running the same version of PyTorch (1.12.1+cu116 instead of 0.42), but it doesn't seem like it's an import as you're not doing any import star.
The text was updated successfully, but these errors were encountered:
Hi,
I'm trying out your code to gain a better understanding of the whole concept, but I get an error:
FilterLinear
is not something you defined, and it's not something you import either. Do you remember where it comes from?Obviously, since it's been a while since you posted your code I am not running the same version of PyTorch (
1.12.1+cu116
instead of0.42
), but it doesn't seem like it's an import as you're not doing any import star.The text was updated successfully, but these errors were encountered: