Skip to main content

linear_forward

Function linear_forward 

Source
pub fn linear_forward<T: Triton, D: Num, const USE_BIAS: bool, const BLOCK_M: i32, const BLOCK_N: i32, const BLOCK_K: i32, const GROUP_M: i32>(
    x_ptr: T::Pointer<D>,
    w_ptr: T::Pointer<D>,
    b_ptr: T::Pointer<D>,
    y_ptr: T::Pointer<D>,
    M: i32,
    N: i32,
    K: i32,
    stride_xm: i32,
    stride_xk: i32,
    stride_wn: i32,
    stride_wk: i32,
    stride_ym: i32,
    stride_yn: i32,
)
where T::I32Tensor: Tensor<i32, 1> + Comparison<i32, BoolTensor = T::BoolTensor>, T::Pointer<D>: AddOffsets<i32, 1, T::I32Tensor, Output = T::Tensor<T::Pointer<D>>>,