@@ -506,11 +506,11 @@ <h2>๋ฐ์ดํฐ ์ฒ๋ฆฌํ๊ธฐ<a class="headerlink" href="#id1" title="์ด ์ ๋ชฉ์
506
506
< span class ="w "> </ span > < span class ="k "> return</ span > < span class ="bp "> self</ span > < span class ="o "> .</ span > < span class ="n "> vocab</ span > < span class ="p "> [</ span > < span class ="n "> token</ span > < span class ="p "> ]</ span >
507
507
< span class ="gr "> RuntimeError</ span > : < span class ="n "> Token Eisfischerhรผtte not found and default index is not set</ span >
508
508
< span class ="x "> Exception raised from __getitem__ at /opt/conda/conda-bld/torchtext_1682366561607/work/torchtext/csrc/vocab.cpp:43 (most recent call first):</ span >
509
- < span class ="x "> frame #0: c10::Error::Error(c10::SourceLocation, std::string) + 0x57 (0x7fbb5b18a4d7 in /opt/conda/lib/python3.10/site-packages/torch/lib/libc10.so)</ span >
510
- < span class ="x "> frame #1: c10::detail::torchCheckFail(char const*, char const*, unsigned int, std::string const&) + 0x64 (0x7fbb5b15436b in /opt/conda/lib/python3.10/site-packages/torch/lib/libc10.so)</ span >
511
- < span class ="x "> frame #2: torchtext::Vocab::__getitem__(c10::basic_string_view<char> const&) const + 0x384 (0x7fba710ebde4 in /opt/conda/lib/python3.10/site-packages/torchtext/lib/libtorchtext.so)</ span >
512
- < span class ="x "> frame #3: <unknown function> + 0x1e3d7 (0x7fba733923d7 in /opt/conda/lib/python3.10/site-packages/torchtext/_torchtext.so)</ span >
513
- < span class ="x "> frame #4: <unknown function> + 0x3bde7 (0x7fba733afde7 in /opt/conda/lib/python3.10/site-packages/torchtext/_torchtext.so)</ span >
509
+ < span class ="x "> frame #0: c10::Error::Error(c10::SourceLocation, std::string) + 0x57 (0x7fbd7e00e4d7 in /opt/conda/lib/python3.10/site-packages/torch/lib/libc10.so)</ span >
510
+ < span class ="x "> frame #1: c10::detail::torchCheckFail(char const*, char const*, unsigned int, std::string const&) + 0x64 (0x7fbd7dfd836b in /opt/conda/lib/python3.10/site-packages/torch/lib/libc10.so)</ span >
511
+ < span class ="x "> frame #2: torchtext::Vocab::__getitem__(c10::basic_string_view<char> const&) const + 0x384 (0x7fbd55e98de4 in /opt/conda/lib/python3.10/site-packages/torchtext/lib/libtorchtext.so)</ span >
512
+ < span class ="x "> frame #3: <unknown function> + 0x1e3d7 (0x7fbd55d7a3d7 in /opt/conda/lib/python3.10/site-packages/torchtext/_torchtext.so)</ span >
513
+ < span class ="x "> frame #4: <unknown function> + 0x3bde7 (0x7fbd55d97de7 in /opt/conda/lib/python3.10/site-packages/torchtext/_torchtext.so)</ span >
514
514
< span class ="x "> frame #5: /opt/conda/bin/python() [0x4fc887]</ span >
515
515
< span class ="x "> frame #6: _PyObject_MakeTpCall + 0x25b (0x4f631b in /opt/conda/bin/python)</ span >
516
516
< span class ="x "> frame #7: /opt/conda/bin/python() [0x5083df]</ span >
@@ -968,7 +968,7 @@ <h2>๋ค์ ๋จ๊ณ<a class="headerlink" href="#id2" title="์ด ์ ๋ชฉ์ ๋ํ
968
968
< li > < p > < code class ="docutils literal notranslate "> < span class ="pre "> torchtext</ span > </ code > ๋ฅผ ์ฌ์ฉํ Ben Trevett์ ํํ ๋ฆฌ์ผ์ < a class ="reference external " href ="https://github.com/bentrevett/ "> ์ด๊ณณ</ a > ์์ ํ์ธํ ์ ์์ต๋๋ค.</ p > </ li >
969
969
< li > < p > < code class ="docutils literal notranslate "> < span class ="pre "> nn.Transformer</ span > </ code > ์ < code class ="docutils literal notranslate "> < span class ="pre "> torchtext</ span > </ code > ์ ๋ค๋ฅธ ๊ธฐ๋ฅ๋ค์ ์ด์ฉํ ๋ค์ ๋จ์ด ์์ธก์ ํตํ ์ธ์ด ๋ชจ๋ธ๋ง ํํ ๋ฆฌ์ผ์ ์ดํด๋ณด์ธ์.</ p > </ li >
970
970
</ ul >
971
- < p class ="sphx-glr-timing "> < strong > Total running time of the script:</ strong > ( 0 minutes 13.362 seconds)</ p >
971
+ < p class ="sphx-glr-timing "> < strong > Total running time of the script:</ strong > ( 0 minutes 8.310 seconds)</ p >
972
972
< div class ="sphx-glr-footer sphx-glr-footer-example docutils container " id ="sphx-glr-download-beginner-torchtext-translation-py ">
973
973
< div class ="sphx-glr-download sphx-glr-download-python docutils container ">
974
974
< p > < a class ="reference download internal " download ="" href ="../_downloads/462f53ac0f7c6840743ad8655c43102c/torchtext_translation.py "> < code class ="xref download docutils literal notranslate "> < span class ="pre "> Download</ span > < span class ="pre "> Python</ span > < span class ="pre "> source</ span > < span class ="pre "> code:</ span > < span class ="pre "> torchtext_translation.py</ span > </ code > </ a > </ p >
0 commit comments