torch_geometric.nn.models.HeteroJumpingKnowledge
- class HeteroJumpingKnowledge(types: List[str], mode: str, channels: Optional[int] = None, num_layers: Optional[int] = None)[source]
Bases:
ModuleJumpingKnowledge模块的异构版本。- Parameters:
types (List[str]) – 输入字典的键。
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)