Skip to content

Commit

Permalink
Added bf16 to condition
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-savelyevv committed Nov 21, 2023
1 parent d1f71ee commit 5086e18
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ bool ov::pass::ConvertPrecision::run_on_model(const std::shared_ptr<ov::Model>&
if (used_precisions.empty())
return false;

bool has_fp16_compression = m_precisions.count(element::f32) > 0 && m_precisions[element::f32] == element::f16;
bool has_fp16_compression = m_precisions.count(element::f32) > 0 && (m_precisions[element::f32] == element::f16 || m_precisions[element::f32] == element::bf16);

if (m_keep_precision_sensitive_in_fp32 && has_fp16_compression) {
pass::Manager manager(get_pass_config());
Expand Down

0 comments on commit 5086e18

Please sign in to comment.