z = torch.randn(10, 10, requires_grad=True). stacked = torch.vstack([x, y, z]). grad = torch.randn(30, 10). stacked.backward(grad).
確定! 回上一頁