avg_quad_pool2d#
- torch_geopooling.functional.avg_quad_pool2d(tiles: Tensor, weight: Tensor, input: Tensor, exterior: Tuple[float, ...], *, training: bool = True, max_terminal_nodes: int | None = None, max_depth: int | None = None, capacity: int | None = None, precision: int | None = None) quad_pool2d#
Average pooling over quadtree decomposition of input 2D coordinates.
See
torch_geopooling.nn.AvgQuadPool2dfor more details.- Parameters:
tiles – Tiles tensor representing tiles of a quadtree (both, internal and terminal).
weight – Weights tensor associated with each tile of a quadtree.
input – Input 2D coordinates as pairs of x (longitude) and y (latitude).
exterior – Geometrical boundary of the learning space in (X, Y, W, H) format.
training – True, when executed during training, and False otherwise.
max_terminal_nodes – Optional maximum number of terminal nodes in a quadtree. Once a maximum is reached, internal nodes are no longer sub-divided and tree stops growing.
max_depth – Maximum depth of the quadtree. Default: 17.
capacity – Maximum number of inputs, after which a quadtree’s node is subdivided and depth of the tree grows. Default: 1.
precision – Optional rounding of the input coordinates. Default: 7.