torch_geometric.transforms.LinearTransformation
- class LinearTransformation(matrix: Tensor)[source]
Bases:
BaseTransformTransforms node positions
data.poswith a square transformation matrix computed offline (functional name:linear_transformation)- Parameters
matrix (Tensor) – Tensor with shape
[D, D]whereDcorresponds to the dimensionality of node positions.