forked from sony/model_optimization
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Automate manual parts of creating pages in docsrc Makefile. * Remove the old API dir and use the experimental old dir as the current API in docsrs. * Update documentation in classes that are auto-generated. * Adapt docsrc to new API. --------- Co-authored-by: reuvenp <reuvenp@altair-semi.com>
- Loading branch information
1 parent
eceb70b
commit 78f2f4d
Showing
76 changed files
with
760 additions
and
736 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
docsrc/source/api/api_docs/classes/DataGenerationConfig.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
:orphan: | ||
|
||
.. _ug-DataGenerationConfig: | ||
|
||
================================================ | ||
Data Generation Configuration | ||
================================================ | ||
|
||
.. autoclass:: model_compression_toolkit.data_generation.DataGenerationConfig | ||
:members: | ||
|
||
|
||
ImageGranularity | ||
================================================ | ||
|
||
.. autoclass:: model_compression_toolkit.data_generation.ImageGranularity | ||
:members: | ||
|
||
|
||
SchedulerType | ||
================================================ | ||
|
||
.. autoclass:: model_compression_toolkit.data_generation.SchedulerType | ||
:members: | ||
|
||
|
||
|
||
BatchNormAlignemntLossType | ||
================================================ | ||
|
||
.. autoclass:: model_compression_toolkit.data_generation.BatchNormAlignemntLossType | ||
:members: | ||
|
||
|
||
OutputLossType | ||
================================================ | ||
|
||
.. autoclass:: model_compression_toolkit.data_generation.OutputLossType | ||
:members: | ||
|
||
|
||
DataInitType | ||
================================================ | ||
|
||
.. autoclass:: model_compression_toolkit.data_generation.DataInitType | ||
:members: | ||
|
||
|
||
BNLayerWeightingType | ||
================================================ | ||
|
||
.. autoclass:: model_compression_toolkit.data_generation.BNLayerWeightingType | ||
:members: | ||
|
||
|
||
ImagePipelineType | ||
================================================ | ||
|
||
.. autoclass:: model_compression_toolkit.data_generation.ImagePipelineType | ||
:members: | ||
|
||
|
||
ImageNormalizationType | ||
================================================ | ||
|
||
.. autoclass:: model_compression_toolkit.data_generation.ImageNormalizationType | ||
:members: | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
:orphan: | ||
|
||
.. _ug-KPI: | ||
|
||
|
||
KPI | ||
================================ | ||
**Object to configure resources to use when searching for a configuration for the optimized model (such as in mixed-precision, pruning, etc.):** | ||
|
||
.. autoclass:: model_compression_toolkit.core.KPI | ||
|
11 changes: 11 additions & 0 deletions
11
docsrc/source/api/api_docs/classes/MixedPrecisionQuantizationConfig.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
:orphan: | ||
|
||
.. _ug-MixedPrecisionQuantizationConfig: | ||
|
||
|
||
MixedPrecisionQuantizationConfig | ||
=================================== | ||
**Class to configure the quantization process of the model when quantizing in mixed-precision:** | ||
|
||
.. autoclass:: model_compression_toolkit.core.MixedPrecisionQuantizationConfig | ||
|
12 changes: 12 additions & 0 deletions
12
docsrc/source/api/api_docs/classes/MpDistanceWeighting.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
:orphan: | ||
|
||
.. _ug-MpDistanceWeighting: | ||
|
||
|
||
================================= | ||
MpDistanceWeighting | ||
================================= | ||
|
||
.. autoclass:: model_compression_toolkit.core.MpDistanceWeighting | ||
:members: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
:orphan: | ||
|
||
.. _ug-PruningConfig: | ||
|
||
================================================ | ||
Pruning Configuration | ||
================================================ | ||
|
||
.. autoclass:: model_compression_toolkit.pruning.PruningConfig | ||
:members: | ||
|
||
|
||
ImportanceMetric | ||
================================================ | ||
|
||
.. autoclass:: model_compression_toolkit.pruning.ImportanceMetric | ||
:members: | ||
|
||
|
||
ChannelsFilteringStrategy | ||
================================================ | ||
|
||
.. autoclass:: model_compression_toolkit.pruning.ChannelsFilteringStrategy | ||
:members: | ||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
:orphan: | ||
|
||
.. _ug-PruningInfo: | ||
|
||
================================================ | ||
Pruning Information | ||
================================================ | ||
|
||
.. autoclass:: model_compression_toolkit.pruning.PruningInfo | ||
:members: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
:orphan: | ||
|
||
.. _ug-QuantizationConfig: | ||
|
||
|
||
QuantizationConfig | ||
========================== | ||
**Class to configure the quantization process of the model:** | ||
|
||
.. autoclass:: model_compression_toolkit.core.QuantizationConfig |
11 changes: 11 additions & 0 deletions
11
docsrc/source/api/api_docs/classes/QuantizationErrorMethod.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
:orphan: | ||
|
||
.. _ug-QuantizationErrorMethod: | ||
|
||
|
||
QuantizationErrorMethod | ||
========================== | ||
**Enum to select a method for quantization parameters' selection:** | ||
|
||
.. autoclass:: model_compression_toolkit.core.QuantizationErrorMethod | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions
10
docsrc/source/api/api_docs/methods/keras_data_generation_experimental.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
:orphan: | ||
|
||
.. _ug-keras_data_generation_experimental: | ||
|
||
|
||
===================================== | ||
Keras Data Generation | ||
===================================== | ||
|
||
.. autofunction:: model_compression_toolkit.data_generation.keras_data_generation_experimental |
4 changes: 2 additions & 2 deletions
4
...st_training_quantization_experimental.rst → ...s_gradient_post_training_quantization.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
:orphan: | ||
|
||
.. _ug-keras_gradient_post_training_quantization_experimental: | ||
.. _ug-keras_gradient_post_training_quantization: | ||
|
||
|
||
================================================ | ||
Keras Gradient Based Post Training Quantization | ||
================================================ | ||
|
||
.. autofunction:: model_compression_toolkit.gptq.keras_gradient_post_training_quantization_experimental | ||
.. autofunction:: model_compression_toolkit.gptq.keras_gradient_post_training_quantization |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.