MATCHA icon indicating copy to clipboard operation
MATCHA copied to clipboard

An error occurred when I was running denoise_contact.py . Could you tell me how to solve it?

Open HappyLife-together opened this issue 1 year ago • 0 comments

Traceback (most recent call last): File "MATCHA-master/Code/denoise_contact.py", line 154, in proba = predict(classifier_model, pair_wise).reshape((-1)) File "MATCHA-master/Code/denoise_contact.py", line 85, in predict x = pad_sequence(x, batch_first=True, padding_value=0).to(device) File "anaconda3/envs/lib/python3.9/site-packages/torch/nn/utils/rnn.py", line 363, in pad_sequence return torch._C._nn.pad_sequence(sequences, batch_first, padding_value) TypeError: pad_sequence(): argument 'sequences' (position 1) must be tuple of Tensors, not Tensor

HappyLife-together avatar Apr 27 '23 14:04 HappyLife-together