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