Skip to content

Commit

Permalink
advanced/cpp_frontend 오타 수정 (#695)
Browse files Browse the repository at this point in the history
  • Loading branch information
JSJSWON authored Aug 12, 2023
1 parent fefdcdc commit 0330dfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions advanced_source/cpp_frontend.rst
Original file line number Diff line number Diff line change
Expand Up @@ -649,13 +649,13 @@ API에서 기본 생성자에 의해 만들어진 모듈 holder(``Linear()`` 등
결론적으로 어떤 오너십 모델, 어떤 시맨틱을 사용하면 좋을까요? C++
프론트엔드 API는 모듈 holder가 제공하는 오너십 모델을 가장 잘 지원합니다.
이 메커니즘의 유일한 단점은 모듈 선언 아래에 boilerplate 한 줄이
추가된다는 것입니다. 즉, 가장 단순한 모델은 C++ 모듈의 기초를 배울
추가된다는 것입니다. 즉, 가장 단순한 모델은 C++ 모듈의 기초를 배울
나오는 밸류 시맨틱 모델입니다. 작고 간단한 스크립트의 경우,
이것만으로 충분할 수 있습니다. 그러나 언젠가는 기술적 이유로 인해
이 기능이 항상 지원되지는 않는다는 사실을 알게 될 것입니다. 예를 들어 직렬화
API(``torch::save````torch::load``)는 모듈 holder(혹은 일반
``shared_ptr``)만을 지원합니다. 따라서 C++ 프론트엔드로 모듈을
정의할 떄에는 모듈 holder API 방식이 권장되며, 앞으로 본 튜토리얼에서
정의할 때에는 모듈 holder API 방식이 권장되며, 앞으로 본 튜토리얼에서
이 API를 사용하겠습니다.
DCGAN 모듈 정의하기
Expand Down

0 comments on commit 0330dfe

Please sign in to comment.