텐서 모양 별 실제 데이터 확인
In [1]: import torch torch.Size([14]) 실 데이터 확인¶ In [2]: torch.rand(14) Out[2]: tensor([0.3614, 0.6932, 0.3986, 0.0717, 0.4612, 0.3320, 0.3733, 0.9937, 0.1960, 0.5579, 0.0481, 0.1131, 0.4117, 0.0707]) torch.Size([14, 1]) 실데이터 확인¶ In [3]: torch.rand(14,1) Out[3]: tensor([[0.3119], [0.2978], [0.8179], [0.8675], [0.2603], [0.6444], [0.9550], [0.8595], [0.9938], [0.8488], [0.9781], [0.2936], [0.7469]..
2023. 4. 8.