Skip to content

Commit

Permalink
Build pages (sony#917)
Browse files Browse the repository at this point in the history
* Auto-generated pages for docs.

---------

Co-authored-by: reuvenp <[email protected]>
  • Loading branch information
reuvenperetz and reuvenp authored Jan 3, 2024
1 parent c355406 commit bca5634
Show file tree
Hide file tree
Showing 64 changed files with 652 additions and 431 deletions.
2 changes: 1 addition & 1 deletion docs/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 4442932b4e0f154d438d38c0696d562c
config: 326a44603e091bfcc5700e5a7b672108
tags: 645f666f9bcd5a90fca523b33c5a78b7
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ GradientPTQConfig Class
:members:

=================================
GPTQHessianWeightsConfig Class
GPTQHessianScoresConfig Class
=================================


**The following API can be used to create a GPTQHessianWeightsConfig instance which can be used to define necessary parameters for computing Hessian weights for the GPTQ loss function.**
**The following API can be used to create a GPTQHessianScoresConfig instance which can be used to define necessary parameters for computing Hessian scores for the GPTQ loss function.**

.. autoclass:: model_compression_toolkit.gptq.GPTQHessianWeightsConfig
.. autoclass:: model_compression_toolkit.gptq.GPTQHessianScoresConfig
:members:
1 change: 1 addition & 0 deletions docs/_sources/api/experimental_api_docs/index.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Functions
- :ref:`get_tensorflow_data_generation_config<ug-get_tensorflow_data_generation_config>`: A function to generate a DataGenerationConfig for Tensorflow data generation(experimental).
- :ref:`pytorch_data_generation_experimental<ug-pytorch_data_generation_experimental>`: A function to generate data for a Pytorch model (experimental).
- :ref:`get_pytorch_data_generation_config<ug-get_pytorch_data_generation_config>`: A function to load a DataGenerationConfig for Pytorch data generation (experimental).
- :ref:`keras_pruning_experimental<ug-keras_pruning_experimental>`: A function to apply structured pruning for Keras models (experimental).


Modules
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
:orphan:

.. _ug-keras_pruning_experimental:


================================================
Keras Structured Pruning
================================================

.. autofunction:: model_compression_toolkit.pruning.keras_pruning_experimental

================================================
Pruning Configuration
================================================

.. autofunction:: model_compression_toolkit.pruning.PruningConfig



================================================
Pruning Information
================================================

.. autofunction:: model_compression_toolkit.pruning.PruningInfo

Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
exporter Module
=================================

Allows to export a quantized model in different serialization formats and quantization formats.
For more details about the export formats and options, please refer to the project's GitHub `README file <https://github.com/sony/model_optimization/tree/main/model_compression_toolkit/exporter>`_.
Note that this feature is experimental and subject to future changes. If you have any questions or issues, please open an issue in this GitHub repository.

Expand All @@ -31,12 +32,10 @@ Allows to export a Keras model that was quantized via MCT.

.. autoclass:: model_compression_toolkit.exporter.keras_export_model

|

pytorch_export_model
==========================
Allows to export a Pytorch model that was quantized via MCT.

.. autoclass:: model_compression_toolkit.exporter.pytorch_export_model


1 change: 1 addition & 0 deletions docs/_sources/index.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ Keras:
* :ref:`Mixed-precision post training quantization<ug-keras_post_training_quantization_mixed_precision>`
* :ref:`Init model for Quantization Aware Training<ug-keras_quantization_aware_training_init>` (Experimental)
* :ref:`Finalize model after Quantization Aware Training<ug-keras_quantization_aware_training_finalize>` (Experimental)
* :ref:`Structured Pruning<ug-keras_pruning_experimental>` (Experimental)

Pytorch:

Expand Down
10 changes: 5 additions & 5 deletions docs/api/api_docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />

<title>API Docs &#8212; MCT Documentation: ver 1.10.0</title>
<title>API Docs &#8212; MCT Documentation: ver 1.11.0</title>
<link rel="stylesheet" type="text/css" href="../../static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../../static/bizstyle.css" />
<link rel="stylesheet" type="text/css" href="../../static/css/custom.css" />
Expand All @@ -31,7 +31,7 @@ <h3>Navigation</h3>
<li class="right" style="margin-right: 10px">
<a href="../../genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="nav-item nav-item-0"><a href="../../index.html">MCT Documentation: ver 1.10.0</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../index.html">MCT Documentation: ver 1.11.0</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">API Docs</a></li>
</ul>
</div>
Expand Down Expand Up @@ -138,13 +138,13 @@ <h3>Navigation</h3>
<li class="right" style="margin-right: 10px">
<a href="../../genindex.html" title="General Index"
>index</a></li>
<li class="nav-item nav-item-0"><a href="../../index.html">MCT Documentation: ver 1.10.0</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../index.html">MCT Documentation: ver 1.11.0</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">API Docs</a></li>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; Copyright 2022, Sony Semiconductor Israel.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 5.1.1.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 5.0.2.
</div>
</body>
</html>
10 changes: 5 additions & 5 deletions docs/api/api_docs/methods/keras_kpi_data.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />

<title>Get KPI information for Keras Models &#8212; MCT Documentation: ver 1.10.0</title>
<title>Get KPI information for Keras Models &#8212; MCT Documentation: ver 1.11.0</title>
<link rel="stylesheet" type="text/css" href="../../../static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../../../static/bizstyle.css" />
<link rel="stylesheet" type="text/css" href="../../../static/css/custom.css" />
Expand All @@ -31,7 +31,7 @@ <h3>Navigation</h3>
<li class="right" style="margin-right: 10px">
<a href="../../../genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="nav-item nav-item-0"><a href="../../../index.html">MCT Documentation: ver 1.10.0</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../../index.html">MCT Documentation: ver 1.11.0</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Get KPI information for Keras Models</a></li>
</ul>
</div>
Expand Down Expand Up @@ -118,13 +118,13 @@ <h3>Navigation</h3>
<li class="right" style="margin-right: 10px">
<a href="../../../genindex.html" title="General Index"
>index</a></li>
<li class="nav-item nav-item-0"><a href="../../../index.html">MCT Documentation: ver 1.10.0</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../../index.html">MCT Documentation: ver 1.11.0</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Get KPI information for Keras Models</a></li>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; Copyright 2022, Sony Semiconductor Israel.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 5.1.1.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 5.0.2.
</div>
</body>
</html>
10 changes: 5 additions & 5 deletions docs/api/api_docs/methods/keras_post_training_quantization.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />

<title>Keras Post Training Quantization &#8212; MCT Documentation: ver 1.10.0</title>
<title>Keras Post Training Quantization &#8212; MCT Documentation: ver 1.11.0</title>
<link rel="stylesheet" type="text/css" href="../../../static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../../../static/bizstyle.css" />
<link rel="stylesheet" type="text/css" href="../../../static/css/custom.css" />
Expand All @@ -31,7 +31,7 @@ <h3>Navigation</h3>
<li class="right" style="margin-right: 10px">
<a href="../../../genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="nav-item nav-item-0"><a href="../../../index.html">MCT Documentation: ver 1.10.0</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../../index.html">MCT Documentation: ver 1.11.0</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Keras Post Training Quantization</a></li>
</ul>
</div>
Expand Down Expand Up @@ -126,13 +126,13 @@ <h3>Navigation</h3>
<li class="right" style="margin-right: 10px">
<a href="../../../genindex.html" title="General Index"
>index</a></li>
<li class="nav-item nav-item-0"><a href="../../../index.html">MCT Documentation: ver 1.10.0</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../../index.html">MCT Documentation: ver 1.11.0</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Keras Post Training Quantization</a></li>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; Copyright 2022, Sony Semiconductor Israel.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 5.1.1.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 5.0.2.
</div>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />

<title>Keras Post Training Mixed Precision Quantization &#8212; MCT Documentation: ver 1.10.0</title>
<title>Keras Post Training Mixed Precision Quantization &#8212; MCT Documentation: ver 1.11.0</title>
<link rel="stylesheet" type="text/css" href="../../../static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../../../static/bizstyle.css" />
<link rel="stylesheet" type="text/css" href="../../../static/css/custom.css" />
Expand All @@ -31,7 +31,7 @@ <h3>Navigation</h3>
<li class="right" style="margin-right: 10px">
<a href="../../../genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="nav-item nav-item-0"><a href="../../../index.html">MCT Documentation: ver 1.10.0</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../../index.html">MCT Documentation: ver 1.11.0</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Keras Post Training Mixed Precision Quantization</a></li>
</ul>
</div>
Expand Down Expand Up @@ -150,13 +150,13 @@ <h3>Navigation</h3>
<li class="right" style="margin-right: 10px">
<a href="../../../genindex.html" title="General Index"
>index</a></li>
<li class="nav-item nav-item-0"><a href="../../../index.html">MCT Documentation: ver 1.10.0</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../../index.html">MCT Documentation: ver 1.11.0</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Keras Post Training Mixed Precision Quantization</a></li>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; Copyright 2022, Sony Semiconductor Israel.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 5.1.1.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 5.0.2.
</div>
</body>
</html>
10 changes: 5 additions & 5 deletions docs/api/api_docs/methods/pytorch_kpi_data.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />

<title>Get KPI information for PyTorch Models &#8212; MCT Documentation: ver 1.10.0</title>
<title>Get KPI information for PyTorch Models &#8212; MCT Documentation: ver 1.11.0</title>
<link rel="stylesheet" type="text/css" href="../../../static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../../../static/bizstyle.css" />
<link rel="stylesheet" type="text/css" href="../../../static/css/custom.css" />
Expand All @@ -31,7 +31,7 @@ <h3>Navigation</h3>
<li class="right" style="margin-right: 10px">
<a href="../../../genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="nav-item nav-item-0"><a href="../../../index.html">MCT Documentation: ver 1.10.0</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../../index.html">MCT Documentation: ver 1.11.0</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Get KPI information for PyTorch Models</a></li>
</ul>
</div>
Expand Down Expand Up @@ -118,13 +118,13 @@ <h3>Navigation</h3>
<li class="right" style="margin-right: 10px">
<a href="../../../genindex.html" title="General Index"
>index</a></li>
<li class="nav-item nav-item-0"><a href="../../../index.html">MCT Documentation: ver 1.10.0</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../../index.html">MCT Documentation: ver 1.11.0</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Get KPI information for PyTorch Models</a></li>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; Copyright 2022, Sony Semiconductor Israel.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 5.1.1.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 5.0.2.
</div>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />

<title>Pytorch Post Training Quantization &#8212; MCT Documentation: ver 1.10.0</title>
<title>Pytorch Post Training Quantization &#8212; MCT Documentation: ver 1.11.0</title>
<link rel="stylesheet" type="text/css" href="../../../static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../../../static/bizstyle.css" />
<link rel="stylesheet" type="text/css" href="../../../static/css/custom.css" />
Expand All @@ -31,7 +31,7 @@ <h3>Navigation</h3>
<li class="right" style="margin-right: 10px">
<a href="../../../genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="nav-item nav-item-0"><a href="../../../index.html">MCT Documentation: ver 1.10.0</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../../index.html">MCT Documentation: ver 1.11.0</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Pytorch Post Training Quantization</a></li>
</ul>
</div>
Expand Down Expand Up @@ -127,13 +127,13 @@ <h3>Navigation</h3>
<li class="right" style="margin-right: 10px">
<a href="../../../genindex.html" title="General Index"
>index</a></li>
<li class="nav-item nav-item-0"><a href="../../../index.html">MCT Documentation: ver 1.10.0</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../../index.html">MCT Documentation: ver 1.11.0</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Pytorch Post Training Quantization</a></li>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; Copyright 2022, Sony Semiconductor Israel.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 5.1.1.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 5.0.2.
</div>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />

<title>PyTorch Post Training Mixed Precision Quantization &#8212; MCT Documentation: ver 1.10.0</title>
<title>PyTorch Post Training Mixed Precision Quantization &#8212; MCT Documentation: ver 1.11.0</title>
<link rel="stylesheet" type="text/css" href="../../../static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../../../static/bizstyle.css" />
<link rel="stylesheet" type="text/css" href="../../../static/css/custom.css" />
Expand All @@ -31,7 +31,7 @@ <h3>Navigation</h3>
<li class="right" style="margin-right: 10px">
<a href="../../../genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="nav-item nav-item-0"><a href="../../../index.html">MCT Documentation: ver 1.10.0</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../../index.html">MCT Documentation: ver 1.11.0</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">PyTorch Post Training Mixed Precision Quantization</a></li>
</ul>
</div>
Expand Down Expand Up @@ -149,13 +149,13 @@ <h3>Navigation</h3>
<li class="right" style="margin-right: 10px">
<a href="../../../genindex.html" title="General Index"
>index</a></li>
<li class="nav-item nav-item-0"><a href="../../../index.html">MCT Documentation: ver 1.10.0</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../../index.html">MCT Documentation: ver 1.11.0</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">PyTorch Post Training Mixed Precision Quantization</a></li>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; Copyright 2022, Sony Semiconductor Israel.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 5.1.1.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 5.0.2.
</div>
</body>
</html>
Loading

0 comments on commit bca5634

Please sign in to comment.