interpolate(input, size=None, scale_factor=None, mode='nearest', align_corners=None)Equivalent to nn.functional.interpolate, but with support for empty batch sizes. This will eventually be supported natively by PyTorch, and this class can go away.
| 名称 | 类型 | 默认值 |
|---|---|---|
input | — | — |
size | — | None |
scale_factor | — | None |
mode | — | 'nearest' |
align_corners | — | None |