Tensors broadcast by aligning on the right: torch.ones(3,4,5) + torch.ones(5) . Distribution .sample().shape == batch_shape + event_shape .
確定! 回上一頁