Pad¶
- class dragon.vm.dali.ops.Pad(
 axes=(0, 1),
 fill_value=0,
 align=None,
 **kwargs
 )[source]¶
- Pad input to have the same dimensions. - Examples: - pad = dali.ops.Pad( # The axes to pad axes=[0, 1], # The constant value fill at the right side fill_value=0., ) y = pad(inputs['x']) 
__new__¶
- static Pad.__new__(
 cls,
 axes=(0, 1),
 fill_value=0,
 align=None,
 **kwargs
 )[source]¶
- Create a - Padoperator.- Parameters:
- axes (Sequence[int], optional) – The padding axes.
- fill_value (number, optional, default=0) – The constant padding value.
- align (Union[int, Sequence[int]], optional) – The size to align the padding shape.
 
 - Returns:
- nvidia.dali.ops.Pad – The operator. 
 
