Загрузка
Performs a matrix-vector product of the matrix mat and
the vector vec.
The vector input is added to the final result.
If mat is a tensor, vec is a 1-D tensor of
size m, then input must be
broadcastable with a 1-D tensor of size n and
out will be 1-D tensor of size n.
alpha and beta are scaling factors on matrix-vector product between
mat and vec and the added tensor input respectively.
If beta is 0, then the content of input will be ignored, and nan and inf in
it will not be propagated.
For inputs of type FloatTensor or DoubleTensor, arguments beta and
alpha must be real numbers, otherwise they should be integers.
beta (Number, optional) – multiplier for input ()
Example:
>>> M = torch.randn(2)
>>> mat = torch.randn(2, 3)
>>> vec = torch.randn(3)
>>> torch.addmv(M, mat
alpha (Number, optional) – multiplier for ()
out (Tensor, optional) – the output tensor.