gammagl.models.HGTModel

class HGTModel(data, hidden_channels, out_channels, num_heads, num_layers, target_node_type, drop_rate=0.5)[source]

The Heterogeneous Graph Transformer (HGT) proposed in here paper.

Parameters:

cfg (configuration of HGT model.)

forward(x_dict, edge_index_dict)[source]

Define the computation performed at every call.

Should be overridden by all subclasses.

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.