[Pytorch] Autograd


[Pytorch] Autograd

위의 동영상과 사이트를 보며 정리한 포스팅 입니다.Autograd텐서의 모든 연산에 대해 자동 미분을 제공하는 패키지실행 시점에 정의(define-by-run)되는 프레임 워크로 코드가 어떻게 실행되느냐에 따라 역전파가 정의되며 반복마다 역전파(backprop)가 달라질 수 있다.Attribute of Tensor텐서에는 여러가지 속성을 가지고 있는데 아래는 그 중 주요 속성이다.data : 텐서 데이터 저장 ㅡ hold data of the tensor grad : gradient value 저장 ㅡ hold gradient values once it's caculatedgrad_fn : backward graph의 노드 가리킴 ㅡ point to a node in the backward graphis_leaf : tensor가 leaf인지 판단 ㅡ Indicate whether th..........



원문링크 : [Pytorch] Autograd