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

RuntimeError: legacy constructor expects device type: cpubut device type: cuda was passed #30

Open
miderxi opened this issue Jun 29, 2022 · 0 comments

Comments

@miderxi
Copy link

miderxi commented Jun 29, 2022

python main_inference.py --experiment_name dMaSIF_site_3layer_16dims_9A_0.7res_150sup_epoch85 --embedding_layer dMaSIF --emb_dims 16 --n_layers 3 --resolution 0.7 --radius 9 --single_pdb 1A0G_B_B --site True --device cuda:0
0%| | 0/1 [00:00<?, ?it/s]
Traceback (most recent call last):
File "main_inference.py", line 86, in
pdb_ids=test_pdb_ids,
File "/home/v/proj/dmasif/content/MaSIF_colab/data_iteration.py", line 286, in iterate
P1_batch, P2_batch = process(args, protein_pair, net)
File "/home/v/proj/dmasif/content/MaSIF_colab/data_iteration.py", line 126, in process
net.preprocess_surface(P1)
File "/home/v/proj/dmasif/content/MaSIF_colab/model.py", line 454, in preprocess_surface
distance=self.args.distance,
File "/home/v/proj/dmasif/content/MaSIF_colab/geometry_processing.py", line 266, in atoms_to_points_normals
atomtypes=atomtypes,
File "/home/v/proj/dmasif/content/MaSIF_colab/geometry_processing.py", line 164, in soft_distances
[170, 110, 152, 155, 180, 190], device=x.device
RuntimeError: legacy constructor expects device type: cpubut device type: cuda was passed

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