nnf_affine_grid | R Documentation |
Generates a 2D or 3D flow field (sampling grid), given a batch of
affine matrices theta
.
nnf_affine_grid(theta, size, align_corners = FALSE)
theta |
(Tensor) input batch of affine matrices with shape
( |
size |
(torch.Size) the target output image size. ( |
align_corners |
(bool, optional) if |
This function is often used in conjunction with nnf_grid_sample()
to build Spatial Transformer Networks
_ .
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.