Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
74fdcfdb
Commit
74fdcfdb
authored
May 05, 2022
by
andyjpaddle
Browse files
fix det pact
parent
5c7b6dc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
deploy/slim/quantization/quant.py
deploy/slim/quantization/quant.py
+1
-1
No files found.
deploy/slim/quantization/quant.py
View file @
74fdcfdb
...
@@ -166,7 +166,7 @@ def main(config, device, logger, vdl_writer):
...
@@ -166,7 +166,7 @@ def main(config, device, logger, vdl_writer):
for
key
in
config
[
'Architecture'
][
"Models"
]:
for
key
in
config
[
'Architecture'
][
"Models"
]:
freeze_params
=
freeze_params
or
config
[
'Architecture'
][
'Models'
][
freeze_params
=
freeze_params
or
config
[
'Architecture'
][
'Models'
][
key
].
get
(
'freeze_params'
,
False
)
key
].
get
(
'freeze_params'
,
False
)
act
=
None
if
freeze_params
else
'
PACT
'
act
=
None
if
freeze_params
else
PACT
quanter
=
QAT
(
config
=
quant_config
,
act_preprocess
=
act
)
quanter
=
QAT
(
config
=
quant_config
,
act_preprocess
=
act
)
quanter
.
quantize
(
model
)
quanter
.
quantize
(
model
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment