Pad an array.
Pad the input array using a constant or values from input along the border.
◆ af_pad()
C Interface to pad an array.
- Parameters
-
| [out] | out | padded array |
| [in] | in | input array |
| [in] | begin_ndims | number of dimensions for start padding |
| [in] | begin_dims | number of elements to be padded at the start of each dimension |
| [in] | end_ndims | number of dimensions for end padding |
| [in] | end_dims | number of elements to be padded at the end of each dimension |
| [in] | pad_fill_type | values to fill into the padded region |
- Returns
- AF_SUCCESS, if function returns successfully, else an af_err code is given
◆ pad()
C++ Interface to pad an array.
- Parameters
-
| [in] | in | input array |
| [in] | beginPadding | number of elements to be padded at the start of each dimension |
| [in] | endPadding | number of elements to be padded at the end of each dimension |
| [in] | padFillType | values to fill into the padded region |
- Returns
- padded array