torch.broadcast_tensors — PyTorch 1.10.1 documentation
pytorch.org › torchtorch.broadcast_tensors. Broadcasts the given tensors according to Broadcasting semantics. More than one element of a broadcasted tensor may refer to a single memory location. As a result, in-place operations (especially ones that are vectorized) may result in incorrect behavior. If you need to write to the tensors, please clone them first.