Closed TwiggyDaniels closed 4 years ago
Hi, there are (at least) two ways to handle this:
I ended up using PyTorch Geometric like you recommended. I extended PyGeo's dataset to load in MNIST and perform your transformations on it and converted them to PyGeo's Data object. So I didn't have to change your models, I just changed the edges back to adjacency matrices before calling your model.
Thanks for your help and the advice on the lack of order for nodes being more significant than an arbitrary number of nodes. I had gotten stuck thinking it was the other way around and that was a bad train of thought for my current project.
Hey so I was just wondering how/if you implemented/used a DataLoader for batches of hierarchical graphs?
and
produce varying-size tensors between images. So using PyTorch's DataLoader isn't feasible and I'm not quite sure of an efficient way to implement my own.
I could hack my way around it with multiple calls to DataLoader with a batch size of 1, but that would be hilariously inefficient. I considered padding, but this would defeat the point of handling arbitrary-sized inputs.