Dataloader:How to load dataset without meeting "DataLoader found invalid type: <class 'builtin_function_or_method'>"error? #5585
-
I want to build my dataset to train on PYG it seems every thing goes on well finally till it warns me like this and I think this may help us get deeper information on this question it may be just I used '[]' instead '()':
And this is my original code. The data stored in "/netp/test_1/' + str(i)+"_"+'my_file.npy'['net']['conv1.lin.weight']" are in shape [32 ,128].
And the model trained on this dataset is
I would appreciate it if anyone could offer me an answer. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 21 replies
-
Do you have an example I can run on my end? I cannot spot any error in your code, this looks all good. Alternatively, can you try to find out at which element the
|
Beta Was this translation helpful? Give feedback.
Do you have an example I can run on my end? I cannot spot any error in your code, this looks all good. Alternatively, can you try to find out at which element the
DataLoader
errors out? You can do that by manipulating