Temporarily disable new FP16 generation (#8650)

This commit is contained in:
Maxim Vafin authored and GitHub committed 2021-11-17 23:24:01 +03:00
1 parent df30694699
commit 1c879aad08
2 files changed
+5 -2

No files matched your search

+2 -1
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:
+3 -1
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)