torch_geometric.nn.models.HeteroJumpingKnowledge
- class HeteroJumpingKnowledge(types: List[str], mode: str, channels: Optional[int] = None, num_layers: Optional[int] = None)[source]
Bases:
Module
A heterogeneous version of the
JumpingKnowledge
module.- Parameters:
types (List[str]) – The keys of the input dictionary.
mode (str) – The aggregation scheme to use (
"cat"
,"max"
or"lstm"
).channels (int, optional) – The number of channels per representation. Needs to be only set for LSTM-style aggregation. (default:
None
)num_layers (int, optional) – The number of layers to aggregate. Needs to be only set for LSTM-style aggregation. (default:
None
)