-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/gouda-youichi/model_optimiz…
…ation into main
- Loading branch information
Showing
45 changed files
with
1,255 additions
and
412 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,46 @@ | ||
flowchart TB | ||
subgraph TPC["Target Platform Capabilities"] | ||
subgraph QCO["Quantization Config Options"] | ||
Default["Default QCO (8-bit)"] | ||
Mixed["Mixed Precision QCO (8, 4, 2 bits)"] | ||
NoQuant["No Quantization QCO"] | ||
|
||
subgraph OQC["Op Quantization Config"] | ||
OQC1["8-bit"] | ||
OQC2["4-bit"] | ||
OQC3["2-bit"] | ||
AQC["AttributeQuantizationConfig:<br>Kernel, Bias"] | ||
|
||
OQC1 -->|contains| AQC | ||
OQC2 -->|contains| AQC | ||
OQC3 -->|contains| AQC | ||
end | ||
|
||
Mixed -->|contains| OQC1 | ||
Mixed -->|contains| OQC2 | ||
Mixed -->|contains| OQC3 | ||
end | ||
|
||
subgraph OPS["Operators Sets"] | ||
Conv["Conv, Conv Transpose,<br>Depthwise Conv"] | ||
Act["ReLU, ReLU6,<br>Leaky ReLU, etc."] | ||
NoQuantOps["Dropout, Flatten,<br>Reshape, etc."] | ||
end | ||
|
||
subgraph FP["Fusing Patterns"] | ||
FP1["Conv + Activation"] | ||
end | ||
|
||
Mixed -->|attached to| Conv | ||
Default -->|attached to| Act | ||
NoQuant -->|attached to| NoQuantOps | ||
|
||
FP1 -.-> Conv | ||
FP1 -.-> Act | ||
end | ||
|
||
style TPC fill:#e6f3ff,stroke:#333 | ||
style QCO fill:#e6ffe6,stroke:#333 | ||
style OQC fill:#fff9e6,stroke:#333 | ||
style OPS fill:#ffe6e6,stroke:#333 | ||
style FP fill:#ffe6f0,stroke:#333 |
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
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
Oops, something went wrong.