z = x+y # xとyはtensorで同じ型result = torch.empty(4, 2) # xとyと同じ ... if torch.cuda.is_available() else "cpu") model.to(device).
確定! 回上一頁