python – TypeError: linear(): argument ‘input’ (position 1) must be Tensor, not BaseModelOutputWithPoolingAndCrossAttentions

so ive been trying to work on some example of bert that i found on googleCollab as its the first time im trying to use bert and see how it works. The respiratory im working with is the following: im using a different dataset however im getting the issue TypeError: linear(): argument ‘input’ (position … Read more

neural network – How can I fix tensor dimension matching error (with 1 unit difference)

I’m trying to run my code for Graph Convolution Network (GCN) in PyTorch with several .csv input files, but I get the error below: ** RuntimeError: The expanded size of the tensor (732) must match the existing size (731) at non-singleton dimension 0. Target sizes: [732]. Tensor sizes: [731] ** here is my code: import … Read more