Hello, I want to create my heterogeneous graph in DGL.
The node features have integer and string types. for example (age = 20 and name = “John”)
(The values are not known in advance. I want to have a way to encode any value for name for example)
g.nodes[‘x’].data[‘ID’] = torch.tensor([a])
g.nodes[‘x’].data[‘name’] = torch.tensor([c])
Can you help me how to store the feature values into tensors? How a and b should be created?