Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
aidge_export_cpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Projects
aidge
aidge_export_cpp
Commits
6294bb9c
Commit
6294bb9c
authored
1 month ago
by
Axel Farrugia
Browse files
Options
Downloads
Patches
Plain Diff
[Fix] Manually set the input after the quantzation step
parent
07dd7746
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/export_ResNet18/resnet18.py
+7
-1
7 additions, 1 deletion
examples/export_ResNet18/resnet18.py
with
7 additions
and
1 deletion
examples/export_ResNet18/resnet18.py
+
7
−
1
View file @
6294bb9c
...
...
@@ -140,7 +140,7 @@ DO_EXAMPLES = True
OPTIM_SIGN
=
False
SINGLE_SHIFT
=
True
ROUNDING
=
True
NO_QUANT
IZATION
=
False
NO_QUANT
=
False
CLIPPING
=
aidge_quantization
.
Clipping
.
MSE
# 'MAX'
FOLD_GRAPH
=
True
...
...
@@ -345,7 +345,13 @@ Each time the graph has been change, it has to be reset.
Here some Quantizer and Cast nodes have been added.
"""
"""
[Issue]
We need first to manually add an input tensor with the correct datatype,
as it is not automatically done in PTQ.
"""
if
quantize_model
:
input_node
=
model
.
get_ordered_inputs
()[
0
]
input_node
[
0
].
get_operator
().
set_input
(
0
,
aidge_tensors
[
0
])
scheduler
.
reset_scheduling
()
# --------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment