Skip to content
Discussion options

You must be logged in to vote

The edge type ('target', 'to', 'target') does not exist, so AddSelfLoops will no add the edge type and add self loops to it.
Your approach above looks good.
You could also try

data[('target', 'to', 'target')].edge_index = torch.empty(2,0)
data = T.AddSelfLoops()(data)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@wsad1
Comment options

Answer selected by wgeul
@wgeul
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants