Skip to main content

replication_pad1d_forward

Function replication_pad1d_forward 

Source
pub fn replication_pad1d_forward<T: Triton, D: Num, const PAD_LEFT: i32, const PAD_RIGHT: i32, const BLOCK_OL: i32>(
    input_ptr: T::Pointer<D>,
    output_ptr: T::Pointer<D>,
    _B: i32,
    C: i32,
    L: i32,
    OL: i32,
)
where T::I32Tensor: Tensor<i32, 1> + Comparison<i32, BoolTensor = T::BoolTensor>, T::BoolTensor: BitAnd<Output = T::BoolTensor> + BitOr<Output = T::BoolTensor>, T::Pointer<D>: AddOffsets<i32, 1, T::I32Tensor, Output = T::Tensor<T::Pointer<D>>>,
Expand description

1-D replication padding forward pass.

Grid: pid = (b * C + c) * num_ol_tiles + ol_tile

Clamps the input index to [0, L-1] (replication of the boundary value).