gammagl.layers.conv.HypergraphConv¶
- class HypergraphConv(in_channels, out_channels, ea_len, use_attention=False, heads=1, concat=True, negative_slope=0.2, dropout=0.0, bias=True, **kwargs)[source]¶
-
- message(x, edge_index, alpha, y, edge_weight=None)[source]¶
Function that construct message from source nodes to destination nodes.
- Parameters:
x (tensor) – input node feature.
edge_index (tensor) – edges from src to dst.
edge_weight (tensor, optional) – weight of each edge.
- Returns:
tensor – output message
Returns – the message matrix, and the shape is [num_edges, message_dim]