nnf_affine_grid {torch} | R Documentation |
Affine_grid
Description
Generates a 2D or 3D flow field (sampling grid), given a batch of
affine matrices theta
.
Usage
nnf_affine_grid(theta, size, align_corners = FALSE)
Arguments
theta |
(Tensor) input batch of affine matrices with shape
( |
size |
(torch.Size) the target output image size. ( |
align_corners |
(bool, optional) if |
Note
This function is often used in conjunction with nnf_grid_sample()
to build Spatial Transformer Networks
_ .