본문 바로가기
AI/Pytorch

텐서 크기 확인 방법

by 별빛밤 2023. 5. 12.

.size() 또는 .shape 함수를 이용하여 확인한다.

 

code

 

output

'AI > Pytorch' 카테고리의 다른 글

torch.nn.CrossEntropyLoss  (0) 2023.03.11
Learning rate scheduler  (0) 2023.03.07
Optimizer  (0) 2023.03.06
DataLoader 정리  (0) 2023.03.03