PyTorch-Basic (tensor 선언/연산, model parameters/epoch/loss)
0. torch version check import torch print("Output : ", torch.__version__) 1. torch.tensor 선언하기 (torch.zeros/torch.ones) torch.tensor Data type Homepage : https://pytorch.org/docs/stable/tensors.html torch.Tensor — PyTorch master documentation Shortcuts pytorch.org import torch x = torch.tensor([1,2,3,4,5,6]) print(x) x = torch.zeros((5,6)) print(x) x = torch.ones((5,6), dtype = torch.int8) print..
더보기