pad

Function pad 

Source
pub fn pad<T: HasAfEnum>(
    input: &Array<T>,
    begin: Dim4,
    end: Dim4,
    fill_type: BorderType,
) -> Array<T>
Expand description

Pad input Array along borders

§Parameters

  • input is the input array to be padded
  • begin is padding size before first element along a given dimension
  • end is padding size after the last element along a given dimension
  • fill_type indicates what values should be used to fill padded regions

§Return Values

Padded Array