Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Degree-Quant dataset transform bug #1

Closed
chaitjo opened this issue Mar 18, 2021 · 2 comments
Closed

Degree-Quant dataset transform bug #1

chaitjo opened this issue Mar 18, 2021 · 2 comments

Comments

@chaitjo
Copy link

chaitjo commented Mar 18, 2021

Thank you for releasing the code! Found a bug in how transforms are composed for Degree-Quant when I customized the REDDIT example code to my own dataset:

dataset.transform = T.Compose([dataset.transform, dq_transform])

Had to change to:

if dataset.transform is None:
    dataset.transform = dq_transform
else:
    dataset.transform = T.Compose([dataset.transform, dq_transform])

Otherwise, the transform becomes a list [None, ProbabilisticHighDegreeMask].

@chaitjo
Copy link
Author

chaitjo commented Mar 18, 2021

P.S. This doesn't apply for REDDIT_BINARY. This applies to datasets with rich node attributes.

shyam196 added a commit that referenced this issue Mar 18, 2021
@shyam196
Copy link
Collaborator

I added a comment for others, thanks for pointing out :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants