Skip to content

Commit

Permalink
fix precision gap
Browse files Browse the repository at this point in the history
Signed-off-by: fishbell <[email protected]>
  • Loading branch information
songbell committed Dec 20, 2023
1 parent 926a059 commit 5f49242
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugins/hetero/src/compiled_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "openvino/runtime/internal_properties.hpp"
#include "openvino/runtime/properties.hpp"
#include "openvino/util/common_util.hpp"
#include "transformations/fp16_compression/mark_decompression_convert_constant_folding.hpp"
#include "plugin.hpp"
#include "properties.hpp"
#include "xml_parse_utils.h"
Expand All @@ -43,9 +44,10 @@ void ov::hetero::CompiledModel::compile_model(const std::shared_ptr<ov::Model>&
// It may cause replacement of Constant by Parameter in such operations
// like Reshape/Transpose/Gather and lead to unexpected dynamism or exception
ov::pass::Manager manager;
// leave handling of const precision to hardware according to its capability
manager.register_pass<ov::pass::KeepConstantsPrecisionAndAddConverts>();
manager.register_pass<ov::pass::ConstantFolding>();
manager.run_passes(model);

ov::SupportedOpsMap query_model_result;
bool user_set_affinities = false;
// Get user defined affinity
Expand Down

0 comments on commit 5f49242

Please sign in to comment.