torch.sspaddmm¶
-
torch.
sspaddmm
(input, mat1, mat2, *, beta=1, alpha=1, out=None) → Tensor¶ Matrix multiplies a sparse tensor
mat1
with a dense tensormat2
, then adds the sparse tensorinput
to the result.Note: This function is equivalent to
torch.addmm()
, exceptinput
andmat1
are sparse.- Parameters
- Keyword Arguments
beta (Number, optional) – multiplier for
mat
()alpha (Number, optional) – multiplier for ()
out (Tensor, optional) – the output tensor.