You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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,
def f(x: Dict[str, torch.Tensor]) -> Dict[str, torch.Tensor]:
...
return {'node': out_node, 'edge': out_edge, 'global': x_global}
x = {'node': x_node, 'edge': x_edge, 'global': x_global}
model = NeuralODE(f)
out = model(x)
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.
The text was updated successfully, but these errors were encountered:
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.
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.The text was updated successfully, but these errors were encountered: