Performs a matrix multiplication of the dense matrices mat1 and mat2 at the locations
specified by the sparsity pattern of input. The matrix input is added to the final result.
Mathematically this performs the following operation:
out=α(mat1@mat2)∗spy(input)+βinput
where spy(input) is the sparsity pattern matrix of input, alpha
and beta are the scaling factors.
spy(input) has value 1 at the positions where input has non-zero values, and 0 elsewhere.
Parameters:
input (Tensor) – a sparse CSR matrix of shape (m, n) to be added and used to compute
the sampled matrix multiplication
mat1 (Tensor) – a dense matrix of shape (m, k) to be multiplied
mat2 (Tensor) – a dense matrix of shape (k, n) to be multiplied
Keyword Arguments:
beta (Number, optional) – multiplier for input (β)