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
I finally had time to look into this. It looks like to_hetero() already works as expected here. The trick is that one needs to register any functions before-hand that shall not be traced by torch.fx:
🐛 Describe the bug
I'm trying to pass these layers through
to_hertero()
However the tracing fails at:
I'm getting a type error:
rand() received an invalid combination of arguments - got (Proxy, device=Attribute) ...
It fails at
mask = torch.rand(row.size(0), device=edge_index.device) >= p
Environment
conda
,pip
, source): from https://github.com/pyg-team/pytorch_geometric/archive/master.ziptorch-scatter
):The text was updated successfully, but these errors were encountered: