pypose.bvv¶
- class pypose.bvv(lvec, rvec, *, out=None)[source]¶
Performs batched vector-vector product, which results in matrices.
- Parameters:
lvec (
Tensor
) – left vectors to be multiplied.rvec (
Tensor
) – right vectors to be multiplied.
- Returns:
the output tensor.
- Return type:
out (
Tensor
)
Note
This function is broadcastable and supports batched product.
Example
>>> lvec = torch.randn(2, 1, 3) >>> rvec = torch.randn(1, 2, 2) >>> out = pp.bvv(lvec, rvec) >>> out.shape torch.Size([2, 2, 3, 2])