Features type supported


What kind of node and edge features support DGL?

Could i use an integer feature in the nodes, such as node degree, in a GCN o GAT model?


For message passing, DGL only supports float tensors. You can use node degrees as node features, but you will need to cast them to float tensors.

Thank’s for your answer @mufeili.

But, can I use a very big number (for example 100) as a feature, or should I normalize it?

It depends. You need to empirically check whether normalization makes a difference in your case. Typically people do normalize input node features.