Method Pad
Pad(TensorFloat, 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 override void Pad(TensorFloat X, TensorFloat O, ReadOnlySpan<int> pad, PadMode padMode, float constant)
Parameters
Type | Name | Description |
---|---|---|
TensorFloat | X | The input tensor. |
TensorFloat | O | The output tensor to be computed and filled. |
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 |