Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
HappyLife-together opened this issue Apr 27, 2023 · 0 comments

Comments

@HappyLife-together
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant