torch_geometric.transforms.AddGPSE
- class AddGPSE(model: Module, use_vn: bool = True, rand_type: str = 'NormalSE')[source]
Bases:
BaseTransform
Adds the GPSE encoding from the “Graph Positional and Structural Encoder” paper to the given graph (functional name:
add_gpse
). To be used with aGPSE
model, which generates the actual encodings.