Pads a tensor with a given padding value.
Arguments
- operand
(
tensorish)
Tensorish value of any data type.- padding_value
(
tensorish)
Scalar value to use for padding. Must have the same dtype asoperand.- edge_padding_low
(
integer())
Amount of padding to add at the start of each dimension.- edge_padding_high
(
integer())
Amount of padding to add at the end of each dimension.- interior_padding
(
integer())
Amount of padding to add between elements in each dimension.
Value
tensorish
Has the same data type as operand.
For the output shape see the underlying stablehlo documentation (stablehlo::hlo_pad()).
It is ambiguous if the input is ambiguous.
StableHLO
Lowers to stablehlo::hlo_pad().