Open SimonKitSangChu opened 2 years ago
There have been a few discussions on this particular point: several of our downstream users are interested in GNNs, and we've thus decided to support the heterogenous state case. See for example issue 137.
We should choose a type that is supported by torchscript (WIP 163), likely a NamedTuple
of tensors (supported types).
Solver steps should then be modified to work on named tuples.
Thanks. I will close the issue after heterogeneous state is also implemented for adaptive solver. Let me know when it is done.
A dynamical system can often be described not by a single tensor but by multiple ones. For example, a system of particles can have node features, edge features, and global features, each with different feature dimensions.
While we might address the issue individually in each project, have there already been efforts to allow a collection of tensors as an input/output? For example,
Alternatively, we can concatenate these tensors into a single one and de-concatenate it within
f
. Things can be non-trivial if the output shapes are different or might be a graph object itself.