Method Pad
Pad(TensorFloat, ReadOnlySpan<int>, PadMode, float)
Calculates the output tensor by adding padding to the input tensor according to the given padding values and mode.
Declaration
public TensorFloat Pad(TensorFloat X, ReadOnlySpan<int> pad, PadMode padMode = PadMode.Constant, float constant = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| TensorFloat | X | The input tensor. |
| ReadOnlySpan<int> | pad | The lower and upper padding values for each dimension. |
| PadMode | padMode | The |
| float | constant | The constant value to fill with when using |
Returns
| Type | Description |
|---|---|
| TensorFloat | The computed output tensor. |