Skip to content

feat: add GraphTransforms and graph_transform support to GraphDataset - #10

Merged
anna-grim merged 1 commit into
mainfrom
bug-graph-training
Aug 13, 2026
Merged

feat: add GraphTransforms and graph_transform support to GraphDataset#10
anna-grim merged 1 commit into
mainfrom
bug-graph-training

Conversation

@anna-grim

Copy link
Copy Markdown
Collaborator
  • augmentation.py: add GraphTransforms class that applies RandomRotation3D, RandomMirror3D, and RandomJitter3D to the full (N_nodes, 3) node_xyz array of a subgraph so every curve receives the same spatial transform, preserving inter-curve relationships
  • datasets.py: add graph_transform param to GraphDataset; applied to subgraph.node_xyz before path decomposition
  • graph_transformer.py: replace fill_diagonal_() with ~torch.eye() to fix dynamo symbolic-shape crash under torch.compile

- augmentation.py: add GraphTransforms class that applies RandomRotation3D,
  RandomMirror3D, and RandomJitter3D to the full (N_nodes, 3) node_xyz
  array of a subgraph so every curve receives the same spatial transform,
  preserving inter-curve relationships
- datasets.py: add graph_transform param to GraphDataset; applied to
  subgraph.node_xyz before path decomposition
- graph_transformer.py: replace fill_diagonal_() with ~torch.eye() to fix
  dynamo symbolic-shape crash under torch.compile

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@anna-grim
anna-grim merged commit c9a8357 into main Aug 13, 2026
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant