compiled_autograd_tutorial.rst 번역#1056
Open
joonda wants to merge 1 commit intoPyTorchKorea:masterfrom
Open
Conversation
jih0-kim
reviewed
Feb 16, 2026
| torch.compile(lambda: loss.backward(), backend="eager")() | ||
|
|
||
| In the example above, ``x`` changes shapes, and compiled autograd will mark ``x`` as a dynamic shape tensor after the first change. You should see recompiles messages: **Cache miss due to changed shapes**. | ||
| 위의 예제에서, ``x`` 의 형태가 변경되면, compiled autograd는 첫 번째 변경 이후 ``x`` 를 동적 형태 텐서로 표시합니다. 이로 인해 재컴파일 메시지가 (**Cache miss due to changed shapes**) 나타나는 것을 확인할 수 있습니다. |
Member
There was a problem hiding this comment.
용어집에서는 tensor를 별도 번역 없이 tensor로 표기하고 있습니다. 문서 내 전반적으로 확인 후 수정 부탁드립니다.
| 기본 사용 | ||
| ------------ | ||
| Before calling the ``torch.compile`` API, make sure to set ``torch._dynamo.config.compiled_autograd`` to ``True``: | ||
| ``torch.compile`` API를 호출 하기 전에, ``torch._dynamo.config.compiled_autograd`` 을 ``True`` 로 설정해주세요 |
| * 더 큰 캡쳐를 때문에 dynamo 에서 재컴파일과 그래프 끊김이 발생하기 쉽습니다. | ||
|
|
||
| .. note:: Compiled Autograd is under active development and is not yet compatible with all existing PyTorch features. For the latest status on a particular feature, refer to `Compiled Autograd Landing Page <https://docs.google.com/document/d/11VucFBEewzqgkABIjebZIzMvrXr3BtcY1aGKpX61pJY>`_. | ||
| .. note:: Compiled Autograd는 현재 활발히 개발 중이며, 아직 기존 PyTorch 기능과 완전히 호환되지 않습니다. 특정 기능의 최신 상태는 `Compiled Autograd Landing Page <https://docs.google.com/document/d/11VucFBEewzqgkABIjebZIzMvrXr3BtcY1aGKpX61pJY>`_ 를 참고하세요 |
| * Graph breaks in the forward lead to graph breaks in the backward | ||
| * `Backward hooks <https://pytorch.org/docs/stable/notes/autograd.html#backward-hooks-execution>`_ are not captured | ||
| * forward 연산에서 그래프 분절이 일어나면, backward 연산에서도 그래프가 분절됩니다. | ||
| * `Backward hooks <https://pytorch.org/docs/stable/notes/autograd.html#backward-hooks-execution>`_ 이 캡쳐되지 않습니다 |
| .. grid:: 2 | ||
|
|
||
| .. grid-item-card:: :octicon:`mortar-board;1em;` What you will learn | ||
| .. grid-item-card:: :octicon:`mortar-board;1em;` 무엇을 배울 수 있나요? |
Member
There was a problem hiding this comment.
배울 수 있는 내용 or 배우게 될 것들 등 조금 더 자연스러운 표현으로 작성되면 좋을 것 같습니다.
| Compiled Autograd는 PyTorch 2.4 에서 소개된 ``torch.compile`` 확장 기능으로, 더 큰 backward 그래프를 캡쳐할 수 있게 해줍니다. | ||
|
|
||
| While ``torch.compile`` does capture the backward graph, it does so **partially**. The AOTAutograd component captures the backward graph ahead-of-time, with certain limitations: | ||
| ``torch.compile`` 이 backward 그래프를 포작하긴 하지만, 그것은 **부분적으로만** 이루어집니다. AOTAutograd 컴포넌트는 backward 그래프를 사전에 캡쳐하지만, 몇 가지 제한사항이 존재합니다. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
라이선스 동의
변경해주시는 내용에 BSD 3항 라이선스가 적용됨을 동의해주셔야 합니다.
더 자세한 내용은 기여하기 문서를 참고해주세요.
동의하시면 아래
[ ]를[x]로 만들어주세요.관련 이슈 번호
이 Pull Request와 관련있는 이슈 번호를 적어주세요.
이슈 또는 PR 번호 앞에 #을 붙이시면 제목을 바로 확인하실 수 있습니다. (예. #999 )
PR 종류
이 PR에 해당되는 종류 앞의
[ ]을[x]로 변경해주세요.PR 설명
compiled_autograd_tutorial.rst 파일 번역