becnhmark_app/python: revert TODO application because it's not 23.3 yet (#18577)

This commit is contained in:
Zlobin Vladimir 2023-07-17 18:12:40 +04:00 committed by GitHub
parent 440c05d5b9
commit 06bfbd7f28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,10 +78,19 @@ def get_element_type(precision):
def fuse_mean_scale(preproc: PrePostProcessor, app_inputs_info):
# TODO: remove warning after 23.3 release
warned = False
warn_msg = 'Mean/scale values are fused into the model. This slows down performance compared to --imean and --iscale which existed before'
for input_info in app_inputs_info:
if input_info.mean.size:
if not warned:
logger.warning(warn_msg)
warned = True
preproc.input(input_info.name).preprocess().convert_element_type(Type.f32).mean(input_info.mean)
if input_info.scale.size:
if not warned:
logger.warning(warn_msg)
warned = True
preproc.input(input_info.name).preprocess().convert_element_type(Type.f32).scale(input_info.scale)