torch.nn.functional.GridSampleFunctionalOptions
export interface GridSampleFunctionalOptions {
/** Interpolation mode to calculate the output values (default: 'bilinear') */
mode?: 'bilinear' | 'nearest' | 'bicubic';
/** Padding mode for outside grid values (default: 'zeros') */
padding_mode?: 'zeros' | 'border' | 'reflection';
/** Geometrically, we consider the pixels of the input as squares rather than points. (default: false) */
align_corners?: boolean;
}mode('bilinear' | 'nearest' | 'bicubic')optional- – Interpolation mode to calculate the output values (default: 'bilinear')
padding_mode('zeros' | 'border' | 'reflection')optional- – Padding mode for outside grid values (default: 'zeros')
align_corners(boolean)optional- – Geometrically, we consider the pixels of the input as squares rather than points. (default: false)
Options for grid_sample functional operation.