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
2d124b74
Commit
2d124b74
authored
Sep 09, 2021
by
LDOUBLEV
Browse files
set batch_size=1 in kl quant
parent
d57049bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
deploy/slim/quantization/quant_kl.py
deploy/slim/quantization/quant_kl.py
+2
-1
No files found.
deploy/slim/quantization/quant_kl.py
View file @
2d124b74
...
@@ -137,7 +137,8 @@ def main(config, device, logger, vdl_writer):
...
@@ -137,7 +137,8 @@ def main(config, device, logger, vdl_writer):
sample_generator
=
sample_generator
(
train_dataloader
),
sample_generator
=
sample_generator
(
train_dataloader
),
save_model_filename
=
'inference.pdmodel'
,
save_model_filename
=
'inference.pdmodel'
,
save_params_filename
=
'inference.pdiparams'
,
save_params_filename
=
'inference.pdiparams'
,
batch_nums
=
10
)
batch_size
=
1
,
batch_nums
=
None
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
...
...
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