Temporarily disable new FP16 generation (#8650)

This commit is contained in:
Maxim Vafin 2021-11-17 23:24:01 +03:00 committed by GitHub
parent df30694699
commit 1c879aad08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -205,7 +205,8 @@ def arguments_post_parsing(argv: argparse.Namespace):
except Exception as e:
raise_ie_not_found()
if 'data_type' in argv and argv.data_type in ['FP16', 'half']:
# temporary disable new FP16 generation
if False and 'data_type' in argv and argv.data_type in ['FP16', 'half']:
argv.data_type = 'FP32'
argv.compress_fp16 = True
else:

View File

@ -180,7 +180,9 @@ def prepare_emit_ir(graph: Graph, data_type: str, output_dir: str, output_model_
meta_info = {}
graph.strict_mode = False
if not used_by_ir_reader:
# temporary disable new FP16 generation
# if not used_by_ir_reader:
if True:
# convert Parameter data types
convert_data_type.convert_parameters_data_type(graph, data_type)
# convert blobs (usually weights and biases)