Skip to content

Commit bfddf43

Browse files
authored
beginner_source/examples_autograd/polynomial_autograd.py 문서의 오타 수정 #476 (#477)
1 parent 85d2482 commit bfddf43

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

beginner_source/examples_autograd/polynomial_autograd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
# 순전파 단계: 텐서들 간의 연산을 사용하여 예측값 y를 계산합니다.
4040
y_pred = a + b * x + c * x ** 2 + d * x ** 3
4141

42-
# 텐서들간의 연산을 사용하여 손실(loss)을 계싼하고 출력합니다.
42+
# 텐서들간의 연산을 사용하여 손실(loss)을 계산하고 출력합니다.
4343
# 이 때 손실은 (1,) shape을 갖는 텐서입니다.
4444
# loss.item() 으로 손실이 갖고 있는 스칼라 값을 가져올 수 있습니다.
4545
loss = (y_pred - y).pow(2).sum()

0 commit comments

Comments
 (0)