pub fn broadcast<L, R>(
left: L,
right: R
) -> TCResult<(L::Broadcast, R::Broadcast)> where
L: TensorAccess + TensorTransform,
R: TensorAccess + TensorTransform,
Expand description
Broadcast the given left
and right
tensors into the same shape.
For rules of broadcasting, see: https://pytorch.org/docs/stable/notes/broadcasting.html