nabu.processing.padding_cuda module¶
- class nabu.processing.padding_cuda.CudaPadding(shape, pad_width, mode='constant', cuda_options=None, **kwargs)[source]¶
Bases:
PaddingBase
A class for performing padding on GPU using Cuda
Initialize a Padding object.
- Parameters:
shape (tuple) – Image shape
pad_width (tuple) – Padding width for each axis. Please see the documentation of numpy.pad().
mode (str) – Padding mode
constant_values (tuple) – Tuple containing the values to fill when mode=”constant” (as in numpy.pad)
- backend = 'cuda'¶