microsoft / Graphormer

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

About edge_attr_type #138

Open monsteryi0314 opened 1 year ago

monsteryi0314 commented 1 year ago

Can the edge_attr_type not be of type long? If it is a float type, the operation in algos.pyx will go wrong. I don't know what to do. Do you have any good suggestions? (set edge_attr_type float type happen error)Thanke you.

mavisguan commented 1 year ago

There's no variable called edge_attr_type. I guess you mean edge_attr - it can't be type float, it must be type long because it needs to be converted into embedding.

monsteryi0314 commented 1 year ago

There's no variable called edge_attr_type. I guess you mean edge_attr - it can't be type float, it must be type long because it needs to be converted into embedding.

没有名为 的变量edge_attr_type。我猜你的意思是edge_attr- 它不能是 type float,它必须是 typelong因为它需要被转换成嵌入。

Thank you! Still have a question:If my node feature type is time series, what needs to be changed at the beginning of the embedding?