Skip to content

advanced_source/cpp_cuda_graphs.rst 번역 #961

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 30, 2024
Merged

advanced_source/cpp_cuda_graphs.rst 번역 #961

merged 4 commits into from
Nov 30, 2024

Conversation

hyoyoung
Copy link
Member

라이선스 동의

변경해주시는 내용에 BSD 3항 라이선스가 적용됨을 동의해주셔야 합니다.

더 자세한 내용은 기여하기 문서를 참고해주세요.

동의하시면 아래 [ ][x]로 만들어주세요.

  • 기여하기 문서를 확인하였으며, 본 PR 내용에 BSD 3항 라이선스가 적용됨에 동의합니다.

관련 이슈 번호

이 Pull Request와 관련있는 이슈 번호를 적어주세요.

이슈 또는 PR 번호 앞에 #을 붙이시면 제목을 바로 확인하실 수 있습니다. (예. #999 )

PR 종류

이 PR에 해당되는 종류 앞의 [ ][x]로 변경해주세요.

  • 오탈자를 수정하거나 번역을 개선하는 기여
  • 번역되지 않은 튜토리얼을 번역하는 기여
  • 공식 튜토리얼 내용을 반영하는 기여
  • 위 종류에 포함되지 않는 기여

PR 설명

이 PR로 무엇이 달라지는지 대략적으로 알려주세요.
advanced_source/cpp_cuda_graphs.rst 번역

@hyoyoung hyoyoung requested review from 9bow and jih0-kim November 28, 2024 14:40

파이토치에서 CUDA 그래프 사용법을 보여드리고자 합니다 `MNIST
예제 <https://github.com/pytorch/examples/tree/main/cpp/mnist>`_.
LibTorch(C++ 프론트엔드)에서의 CUDA 그래프 사용법은 다음과 매우 유사지만
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

유사지만 -> 유사하지만 으로 수정 요청 드립니다.

@hyoyoung hyoyoung merged commit 5fc8a7d into PyTorchKorea:master Nov 30, 2024

**Author**: `Anupam Sharma <https://anp-scp.github.io/>`_
**번역**: `Anupam Sharma <https://anp-scp.github.io/>`_
**저자**: `장효영 <https://github.com/hyoyoung>`_
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

번역과 저자가 바뀌어 작성되어 있습니다. 수정 요청드립니다.

to do is preallocate tensors for reusing them in the main training loop. Here is an example
implementation:
이 튜토리얼에서는 전체 네트워크 그래프 캡처를 통해 모든 계산 단계에 CUDA 그래프를 적용합니다.
하지만 그 전에 약간의 소스 코드 수정이 필요합니다. 우리가 해야 할 일은 주 훈련 루프에서
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

공백 제거 요청 드립니다.


This tutorial illustrates the usage of torchtext on a dataset that is not built-in. In the tutorial,
we will preprocess a dataset that can be further utilized to train a sequence-to-sequence
model for machine translation (something like, in this tutorial: `Sequence to Sequence Learning
with Neural Networks <https://github.com/bentrevett/pytorch-seq2seq/blob/master/1%20-%20Sequence%\
20to%20Sequence%20Learning%20with%20Neural%20Networks.ipynb>`_) but without using legacy version
of torchtext.
이 튜토리얼에서는 기본 제공되지 않는 데이터셋에서 Torchtext를 사용하는 방법을 설명합니다.
튜토리얼 안에서는 기계 번역을 위한 시퀀스 간 모델을 훈련하는 데 추가로 활용할 수 있는 데이터셋를 전처리 할 것입니다.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

데이터셋를 -> 데이터셋을 로 수정 요청 드립니다.

* Tokenize sentence
* Apply transforms to sentence
* Perform bucket batching
다음 영어에서 독일어 번역을 수행할 수 있는 모델을 훈련하기 위해 데이터셋을 준비해야 한다고 가정해 보겠습니다.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

다음 을 제거했을 때 글의 이해가 더 쉬운 듯 합니다. 검토 부탁드립니다.

# we can perform various operations.
# Check `this tutorial <https://pytorch.org/data/beta/dp_tutorial.html>`_ for more details on
# DataPipes.
# DataPipe는 다양한 동작을 수행할수 있는 데이터 셋 객체와 비슷하게 생각할 수 있습니다.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

용어집 가이드에서 dataset은 데이터셋으로 표기하고 있으므로 수정 요청드립니다.

# Note that we also have attribution details along with pair of sentences. We will
# write a small function to remove the attribution details:
# 한 쌍의 문장과 함께 속성 세부 사항이 같이 있다는 점을 눈여겨 보십시요.
# 속성 세부 정보를 제거할수 있는 작은 함수를 작성해봅시다.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'제거할수 있는' 띄어쓰기 수정 요청드립니다.

#
# Let us define a function to get tokens from elements of tuples in the iterator.
# 반복자의 튜플 요소에서 토큰을 가져오는 함수를 정의해 보겠습니다
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

문장 끝에 온점(.) 추가 요청드립니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants