You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! Thank you for your great work of Torchdrug, GearNet, and ESM-GearNet!
Sorry to bother you. I'm trying to extract feature embeddings using GearNet (as discussed in several former issues) on EC, GO, and FC dataset (as provided in https://zenodo.org/records/7593591). It is easy to notice that different from EC and GO where proteins are provided in pdb format, proteins in FC are in hdf5 format, so I use your Fold3d class in GearNet (https://github.com/DeepGraphLearning/GearNet/blob/main/gearnet/dataset.py) to preprocess the data.
However, when I pass the Protein class into GearNet network following the instructions in Torchdrug, I met the following errors when running on GPU:
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
and then
RuntimeError: Error building extension 'torch_ext':
...
... ...site-packages/torchdrug/utils/extension/torch_ext.cpp:1:
/usr/include/features.h:424:12: fatal error: sys/cdefs.h: No such file or directory
424 | # include <sys/cdefs.h>
| ^~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
When running on CPU, I met:
NotImplementedError: Could not run 'aten::view' with arguments from the 'SparseCPU' backend
I searched for the cause of these errors on the Internet but found that I couldn't solve them because they are related to the environment. I'm wondering why I don't meet any of the problems when directly use Protein.from_pdb() on EC and GO, but encounter these problems on FC where I use your Fold3D class to get also data.Protein instances.
Hi! Thank you for your reply! I checked my torch_extension based on DeepGraphLearning/torchdrug#8 and DeepGraphLearning/torchdrug#238. I'm sure that my torch_ext.cpp lies correctly under torchdrug/utils/extension, and I tried to delete the folder torch_extensions which lies under /home/your_user_name/.cache but it doesn't work.
Hello! Thank you for your great work of Torchdrug, GearNet, and ESM-GearNet!
Sorry to bother you. I'm trying to extract feature embeddings using GearNet (as discussed in several former issues) on EC, GO, and FC dataset (as provided in https://zenodo.org/records/7593591). It is easy to notice that different from EC and GO where proteins are provided in pdb format, proteins in FC are in hdf5 format, so I use your Fold3d class in GearNet (https://github.com/DeepGraphLearning/GearNet/blob/main/gearnet/dataset.py) to preprocess the data.
However, when I pass the Protein class into GearNet network following the instructions in Torchdrug, I met the following errors when running on GPU:
and then
When running on CPU, I met:
I searched for the cause of these errors on the Internet but found that I couldn't solve them because they are related to the environment. I'm wondering why I don't meet any of the problems when directly use Protein.from_pdb() on EC and GO, but encounter these problems on FC where I use your Fold3D class to get also data.Protein instances.
For reference, my code is as follows:
Are there any ways to solve the problem, or is my understanding of torchdrug wrong? Sincerely looking forward to your help. Thank you very much!
The text was updated successfully, but these errors were encountered: