Skip to content
Discussion options

You must be logged in to vote

NieghborLoader has a transform argument. The transform is applied after the minibatch is created. Maybe you could pass a transform like

class CustomAttribute(BaseTransform):
    def __call__(data):
        data.num_edges = # compute number of edges in data
        data.other_custom_tensor = # set based on data.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@LuisaWerner
Comment options

Answer selected by LuisaWerner
Comment options

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

@songsong0425
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
4 participants