Open gao462 opened 2 years ago
Thanks for the issue. Can you say more about the motivation of this and why it might be useful? As far as I can tell, this may involve a big re-structuring of the code base since we are currently using classes to decompose the functionality of message passing (message
, aggregate
, update
). As such, this is likely not "fixable" by now.
The motivation comes from several corner usage requirement in my case.
functorch
) which gives better support on higher-order gradient computation (e.g., Jacobian, Hessian which is fatal in DL) and I need to use that on GNNs.Thanks for sharing. I am curious whether the make_functional(conv)
routine introduced in torchfunc
works and already fits your needs.
🚀 The feature, motivation and pitch
In PyTorch, we have
torch.nn.Linear
andtorch.nn.functional.linear(x, w, b)
. Do we have similar counterpart? For example,torch_geometric.nn.GCNConv
andtorch_geometric.nn.functional.gcn_conv(x, edge_index, edge_weight, w, b)
?Alternatives
No response
Additional context
No response