Skip to content

Commit

Permalink
Revert "Temporarily disable new FP16 generation (openvinotoolkit#8650)"
Browse files Browse the repository at this point in the history
This reverts commit 1c879aa.
  • Loading branch information
mvafin committed Dec 3, 2021
1 parent 1f2e8a5 commit 787ac66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions model-optimizer/mo/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,7 @@ def raise_ie_not_found():
except Exception as e:
raise_ie_not_found()

# temporary disable new FP16 generation
if False and 'data_type' in argv and argv.data_type in ['FP16', 'half']:
if 'data_type' in argv and argv.data_type in ['FP16', 'half']:
argv.data_type = 'FP32'
argv.compress_fp16 = True
else:
Expand Down
4 changes: 1 addition & 3 deletions model-optimizer/mo/pipeline/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,7 @@ def prepare_emit_ir(graph: Graph, data_type: str, output_dir: str, output_model_
meta_info = {}
graph.strict_mode = False

# temporary disable new FP16 generation
# if not used_by_ir_reader:
if True:
if not used_by_ir_reader:
# convert Parameter data types
convert_data_type.convert_parameters_data_type(graph, data_type)
# convert blobs (usually weights and biases)
Expand Down

0 comments on commit 787ac66

Please sign in to comment.