microsoft / Graphormer

Graphormer is a general-purpose deep learning backbone for molecular modeling.
MIT License
2.08k stars 334 forks source link

algos AttributeError #45

Closed Amoy-Ou closed 2 years ago

Amoy-Ou commented 2 years ago

Hello: I got an error when runing your code.Here:

"Graphormer/OGB-LSC/graphormer/src/ogb_wrapper.py", line 34, in preprocess_item
    all_rel_pos_3d_with_noise = torch.from_numpy(algos.bin_rel_pos_3d_1(item.all_rel_pos_3d, noise=noise)).long()
AttributeError: module 'algos' has no attribute 'bin_rel_pos_3d_1'
zhengsx commented 2 years ago

The function bin_rel_pos_3d_1() is here.

Amoy-Ou commented 2 years ago

Thanks

zhengsx commented 2 years ago

Close this issue due to inactive. Feel free to raise a new one or reopen this one for any further question.