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

BUG in static_graph_collate function #34

Open
k-markov opened this issue Mar 18, 2024 · 1 comment
Open

BUG in static_graph_collate function #34

k-markov opened this issue Mar 18, 2024 · 1 comment

Comments

@k-markov
Copy link

Hi, tried to make a StaticBatch from a list of Data objects and it crashed with:

    72 out = out.stores_as(elem)
    74 pattern = elem.pattern

---> 76 for key in elem.keys:
77 if key == 'transform':
78 out[key] = static_scaler_collate([data[key] for data in data_list])

TypeError: 'method' object is not iterable

Putting () after elem.keys fixes the problem.

@marshka
Copy link
Member

marshka commented Apr 25, 2024

Hi, this is due to an update to PyG's Data object in the last versions. They changed Data.keys from property to method. We'll find a solution for tsl's Data accordingly, thanks for the feedback!

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