Skip to content

Commit

Permalink
docs: 12.6 模型量化概念
Browse files Browse the repository at this point in the history
  • Loading branch information
TingsongYu committed Apr 3, 2024
1 parent 8ab9c71 commit 4667bf9
Show file tree
Hide file tree
Showing 91 changed files with 2,616 additions and 393 deletions.
19 changes: 14 additions & 5 deletions docs/chapter-1/1.1-PyTorch-Introduction.html
Original file line number Diff line number Diff line change
Expand Up @@ -1213,6 +1213,19 @@



</li>

<li class="chapter " data-level="4.2.6" data-path="../chapter-12/12.6-quantization.html">

<a href="../chapter-12/12.6-quantization.html">


12.6 模型量化基础概念

</a>



</li>


Expand Down Expand Up @@ -1356,7 +1369,7 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"1.1 PyTorch 初认识","level":"2.1.1","depth":2,"next":{"title":"1.2 环境配置之Anaconda","level":"2.1.2","depth":2,"path":"chapter-1/1.2-Anaconda.md","ref":"chapter-1/1.2-Anaconda.md","articles":[]},"previous":{"title":"第一章 PyTorch 简介与安装","level":"2.1","depth":1,"path":"chapter-1/README.md","ref":"chapter-1/README.md","articles":[{"title":"1.1 PyTorch 初认识","level":"2.1.1","depth":2,"path":"chapter-1/1.1-PyTorch-Introduction.md","ref":"chapter-1/1.1-PyTorch-Introduction.md","articles":[]},{"title":"1.2 环境配置之Anaconda","level":"2.1.2","depth":2,"path":"chapter-1/1.2-Anaconda.md","ref":"chapter-1/1.2-Anaconda.md","articles":[]},{"title":"1.3 环境配置之Pycharm","level":"2.1.3","depth":2,"path":"chapter-1/1.3-Pycharm.md","ref":"chapter-1/1.3-Pycharm.md","articles":[]},{"title":"1.4 环境配置之CUDA&cuDNN","level":"2.1.4","depth":2,"path":"chapter-1/1.4-CUDA&cuDNN.md","ref":"chapter-1/1.4-CUDA&cuDNN.md","articles":[]},{"title":"1.5 环境配置之PyTorch系列包","level":"2.1.5","depth":2,"path":"chapter-1/1.5-PyTorch-install.md","ref":"chapter-1/1.5-PyTorch-install.md","articles":[]},{"title":"1.6 环境配置之Jupyter Notebook","level":"2.1.6","depth":2,"path":"chapter-1/1.6-JupyterNotebook-install.md","ref":"chapter-1/1.6-JupyterNotebook-install.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["copy-code-button","back-to-top-button","expandable-chapters-small","chapter-fold","-lunr","-search","search-pro","[email protected]","github","splitter","sharing-plus","tbfed-pagefooter","intopic-toc","page-toc-button","klipse","pageview-count","donate","popup","3-ba","disqus","emphasize","livereload"],"root":".","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy TingsongYu 2021","modify_label":"文件修订时间:","modify_format":"2022年07月23日21:48:10"},"chapter-fold":{},"disqus":{"useIdentifier":false,"shortName":"gitbookuse"},"emphasize":{},"github":{"url":"https://github.com/TingsongYu/PyTorch-Tutorial-2nd"},"intopic-toc":{"isCollapsed":true,"isScrollspyActive":true,"label":"In this article","maxDepth":6,"mode":"nested","selector":".markdown-section h1, .markdown-section h2, .markdown-section h3, .markdown-section h4, .markdown-section h5, .markdown-section h6","visible":true},"livereload":{},"splitter":{},"search-pro":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"popup":{},"donate":{"alipay":"https://github.com/TingsongYu/PyTorch_Tutorial/blob/master/Data/alipay.jpg?raw=true","alipayText":" 支付宝 ↑ ","button":"赏","title":"原创不易,赏!","wechat":"https://github.com/TingsongYu/PyTorch_Tutorial/blob/master/Data/wechat.jpg?raw=ture","wechatText":" 微信 ↑ "},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"page-toc-button":{"maxTocDepth":2,"minTocSize":2},"back-to-top-button":{},"pageview-count":{},"github-buttons":{"repo":"TingsongYu/PyTorch-Tutorial-2nd","types":["star","watch","fork"],"size":"small"},"3-ba":{"configuration":"auto","token":"d00d5236ccf6a1cabd370aa6366ff513"},"expandable-chapters-small":{},"copy-code-button":{},"klipse":{"myConfigKey":"it's the default value"},"sharing":{"qq":true,"all":["douban","facebook","google","hatenaBookmark","instapaper","linkedin","twitter","messenger","qq","qzone","viber","vk","weibo","pocket","stumbleupon","whatsapp"],"douban":false,"facebook":false,"weibo":true,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":false,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"余霆嵩","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"PyTorch实用教程(第二版)","language":"zh-hans","output.name":"site","gitbook":"3.2.3","description":"PyTorch高质量学习资料"},"file":{"path":"chapter-1/1.1-PyTorch-Introduction.md","mtime":"2021-12-20T13:39:36.761Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-04-01T03:14:22.053Z"},"basePath":"..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"1.1 PyTorch 初认识","level":"2.1.1","depth":2,"next":{"title":"1.2 环境配置之Anaconda","level":"2.1.2","depth":2,"path":"chapter-1/1.2-Anaconda.md","ref":"chapter-1/1.2-Anaconda.md","articles":[]},"previous":{"title":"第一章 PyTorch 简介与安装","level":"2.1","depth":1,"path":"chapter-1/README.md","ref":"chapter-1/README.md","articles":[{"title":"1.1 PyTorch 初认识","level":"2.1.1","depth":2,"path":"chapter-1/1.1-PyTorch-Introduction.md","ref":"chapter-1/1.1-PyTorch-Introduction.md","articles":[]},{"title":"1.2 环境配置之Anaconda","level":"2.1.2","depth":2,"path":"chapter-1/1.2-Anaconda.md","ref":"chapter-1/1.2-Anaconda.md","articles":[]},{"title":"1.3 环境配置之Pycharm","level":"2.1.3","depth":2,"path":"chapter-1/1.3-Pycharm.md","ref":"chapter-1/1.3-Pycharm.md","articles":[]},{"title":"1.4 环境配置之CUDA&cuDNN","level":"2.1.4","depth":2,"path":"chapter-1/1.4-CUDA&cuDNN.md","ref":"chapter-1/1.4-CUDA&cuDNN.md","articles":[]},{"title":"1.5 环境配置之PyTorch系列包","level":"2.1.5","depth":2,"path":"chapter-1/1.5-PyTorch-install.md","ref":"chapter-1/1.5-PyTorch-install.md","articles":[]},{"title":"1.6 环境配置之Jupyter Notebook","level":"2.1.6","depth":2,"path":"chapter-1/1.6-JupyterNotebook-install.md","ref":"chapter-1/1.6-JupyterNotebook-install.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["copy-code-button","back-to-top-button","expandable-chapters-small","chapter-fold","-lunr","-search","search-pro","[email protected]","github","splitter","sharing-plus","tbfed-pagefooter","intopic-toc","page-toc-button","klipse","pageview-count","donate","popup","3-ba","disqus","emphasize"],"root":".","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy TingsongYu 2021","modify_label":"文件修订时间:","modify_format":"2022年07月23日21:48:10"},"chapter-fold":{},"disqus":{"useIdentifier":false,"shortName":"gitbookuse"},"emphasize":{},"github":{"url":"https://github.com/TingsongYu/PyTorch-Tutorial-2nd"},"intopic-toc":{"isCollapsed":true,"isScrollspyActive":true,"label":"In this article","maxDepth":6,"mode":"nested","selector":".markdown-section h1, .markdown-section h2, .markdown-section h3, .markdown-section h4, .markdown-section h5, .markdown-section h6","visible":true},"splitter":{},"search-pro":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"popup":{},"donate":{"alipay":"https://github.com/TingsongYu/PyTorch_Tutorial/blob/master/Data/alipay.jpg?raw=true","alipayText":" 支付宝 ↑ ","button":"赏","title":"原创不易,赏!","wechat":"https://github.com/TingsongYu/PyTorch_Tutorial/blob/master/Data/wechat.jpg?raw=ture","wechatText":" 微信 ↑ "},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"page-toc-button":{"maxTocDepth":2,"minTocSize":2},"back-to-top-button":{},"pageview-count":{},"github-buttons":{"repo":"TingsongYu/PyTorch-Tutorial-2nd","types":["star","watch","fork"],"size":"small"},"3-ba":{"configuration":"auto","token":"d00d5236ccf6a1cabd370aa6366ff513"},"expandable-chapters-small":{},"copy-code-button":{},"klipse":{"myConfigKey":"it's the default value"},"sharing":{"qq":true,"all":["douban","facebook","google","hatenaBookmark","instapaper","linkedin","twitter","messenger","qq","qzone","viber","vk","weibo","pocket","stumbleupon","whatsapp"],"douban":false,"facebook":false,"weibo":true,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":false,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"余霆嵩","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"PyTorch实用教程(第二版)","language":"zh-hans","output.name":"site","gitbook":"3.2.3","description":"PyTorch高质量学习资料"},"file":{"path":"chapter-1/1.1-PyTorch-Introduction.md","mtime":"2021-12-20T13:39:36.761Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-04-03T15:19:43.279Z"},"basePath":"..","book":{"language":""}});
});
</script>
</div>
Expand Down Expand Up @@ -1442,10 +1455,6 @@ <h1 class="search-results-title">No results matching "<span class='search-query'



<script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>



<script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>


Expand Down
19 changes: 14 additions & 5 deletions docs/chapter-1/1.2-Anaconda.html
Original file line number Diff line number Diff line change
Expand Up @@ -1213,6 +1213,19 @@



</li>

<li class="chapter " data-level="4.2.6" data-path="../chapter-12/12.6-quantization.html">

<a href="../chapter-12/12.6-quantization.html">


12.6 模型量化基础概念

</a>



</li>


Expand Down Expand Up @@ -1339,7 +1352,7 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"1.2 环境配置之Anaconda","level":"2.1.2","depth":2,"next":{"title":"1.3 环境配置之Pycharm","level":"2.1.3","depth":2,"path":"chapter-1/1.3-Pycharm.md","ref":"chapter-1/1.3-Pycharm.md","articles":[]},"previous":{"title":"1.1 PyTorch 初认识","level":"2.1.1","depth":2,"path":"chapter-1/1.1-PyTorch-Introduction.md","ref":"chapter-1/1.1-PyTorch-Introduction.md","articles":[]},"dir":"ltr"},"config":{"plugins":["copy-code-button","back-to-top-button","expandable-chapters-small","chapter-fold","-lunr","-search","search-pro","[email protected]","github","splitter","sharing-plus","tbfed-pagefooter","intopic-toc","page-toc-button","klipse","pageview-count","donate","popup","3-ba","disqus","emphasize","livereload"],"root":".","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy TingsongYu 2021","modify_label":"文件修订时间:","modify_format":"2022年07月23日21:48:10"},"chapter-fold":{},"disqus":{"useIdentifier":false,"shortName":"gitbookuse"},"emphasize":{},"github":{"url":"https://github.com/TingsongYu/PyTorch-Tutorial-2nd"},"intopic-toc":{"isCollapsed":true,"isScrollspyActive":true,"label":"In this article","maxDepth":6,"mode":"nested","selector":".markdown-section h1, .markdown-section h2, .markdown-section h3, .markdown-section h4, .markdown-section h5, .markdown-section h6","visible":true},"livereload":{},"splitter":{},"search-pro":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"popup":{},"donate":{"alipay":"https://github.com/TingsongYu/PyTorch_Tutorial/blob/master/Data/alipay.jpg?raw=true","alipayText":" 支付宝 ↑ ","button":"赏","title":"原创不易,赏!","wechat":"https://github.com/TingsongYu/PyTorch_Tutorial/blob/master/Data/wechat.jpg?raw=ture","wechatText":" 微信 ↑ "},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"page-toc-button":{"maxTocDepth":2,"minTocSize":2},"back-to-top-button":{},"pageview-count":{},"github-buttons":{"repo":"TingsongYu/PyTorch-Tutorial-2nd","types":["star","watch","fork"],"size":"small"},"3-ba":{"configuration":"auto","token":"d00d5236ccf6a1cabd370aa6366ff513"},"expandable-chapters-small":{},"copy-code-button":{},"klipse":{"myConfigKey":"it's the default value"},"sharing":{"qq":true,"all":["douban","facebook","google","hatenaBookmark","instapaper","linkedin","twitter","messenger","qq","qzone","viber","vk","weibo","pocket","stumbleupon","whatsapp"],"douban":false,"facebook":false,"weibo":true,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":false,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"余霆嵩","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"PyTorch实用教程(第二版)","language":"zh-hans","output.name":"site","gitbook":"3.2.3","description":"PyTorch高质量学习资料"},"file":{"path":"chapter-1/1.2-Anaconda.md","mtime":"2021-12-21T14:30:46.631Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-04-01T03:14:22.053Z"},"basePath":"..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"1.2 环境配置之Anaconda","level":"2.1.2","depth":2,"next":{"title":"1.3 环境配置之Pycharm","level":"2.1.3","depth":2,"path":"chapter-1/1.3-Pycharm.md","ref":"chapter-1/1.3-Pycharm.md","articles":[]},"previous":{"title":"1.1 PyTorch 初认识","level":"2.1.1","depth":2,"path":"chapter-1/1.1-PyTorch-Introduction.md","ref":"chapter-1/1.1-PyTorch-Introduction.md","articles":[]},"dir":"ltr"},"config":{"plugins":["copy-code-button","back-to-top-button","expandable-chapters-small","chapter-fold","-lunr","-search","search-pro","[email protected]","github","splitter","sharing-plus","tbfed-pagefooter","intopic-toc","page-toc-button","klipse","pageview-count","donate","popup","3-ba","disqus","emphasize"],"root":".","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy TingsongYu 2021","modify_label":"文件修订时间:","modify_format":"2022年07月23日21:48:10"},"chapter-fold":{},"disqus":{"useIdentifier":false,"shortName":"gitbookuse"},"emphasize":{},"github":{"url":"https://github.com/TingsongYu/PyTorch-Tutorial-2nd"},"intopic-toc":{"isCollapsed":true,"isScrollspyActive":true,"label":"In this article","maxDepth":6,"mode":"nested","selector":".markdown-section h1, .markdown-section h2, .markdown-section h3, .markdown-section h4, .markdown-section h5, .markdown-section h6","visible":true},"splitter":{},"search-pro":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"popup":{},"donate":{"alipay":"https://github.com/TingsongYu/PyTorch_Tutorial/blob/master/Data/alipay.jpg?raw=true","alipayText":" 支付宝 ↑ ","button":"赏","title":"原创不易,赏!","wechat":"https://github.com/TingsongYu/PyTorch_Tutorial/blob/master/Data/wechat.jpg?raw=ture","wechatText":" 微信 ↑ "},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"page-toc-button":{"maxTocDepth":2,"minTocSize":2},"back-to-top-button":{},"pageview-count":{},"github-buttons":{"repo":"TingsongYu/PyTorch-Tutorial-2nd","types":["star","watch","fork"],"size":"small"},"3-ba":{"configuration":"auto","token":"d00d5236ccf6a1cabd370aa6366ff513"},"expandable-chapters-small":{},"copy-code-button":{},"klipse":{"myConfigKey":"it's the default value"},"sharing":{"qq":true,"all":["douban","facebook","google","hatenaBookmark","instapaper","linkedin","twitter","messenger","qq","qzone","viber","vk","weibo","pocket","stumbleupon","whatsapp"],"douban":false,"facebook":false,"weibo":true,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":false,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"余霆嵩","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"PyTorch实用教程(第二版)","language":"zh-hans","output.name":"site","gitbook":"3.2.3","description":"PyTorch高质量学习资料"},"file":{"path":"chapter-1/1.2-Anaconda.md","mtime":"2021-12-21T14:30:46.631Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-04-03T15:19:43.279Z"},"basePath":"..","book":{"language":""}});
});
</script>
</div>
Expand Down Expand Up @@ -1425,10 +1438,6 @@ <h1 class="search-results-title">No results matching "<span class='search-query'



<script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>



<script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>


Expand Down
Loading

0 comments on commit 4667bf9

Please sign in to comment.