Install PyG
Get Started
Tutorials
Advanced Concepts
Package Reference
Cheatsheets
External Resources
Bases: GraphGenerator
GraphGenerator
Generates two-dimensional grid graphs. See grid() for more information.
grid()
height (int) – The height of the grid.
width (int) – The width of the grid.
dtype (torch.dtype, optional) – The desired data type of the returned position tensor. (default: None)
torch.dtype
None