Skip to content

Commit

Permalink
Merge branch 'fast_fp16_compression' of https://github.com/slyalin/op…
Browse files Browse the repository at this point in the history
…envino into fast_fp16_compression
  • Loading branch information
slyalin committed Aug 16, 2023
2 parents 9598cd7 + bd702ef commit a506b66
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ std::shared_ptr<ov::Node> change_constant_precision_to_fp16(std::shared_ptr<ov::
if (!dst_data || !size)
return nullptr;

// slow implementation: is used when optimized ones are not available: f64 or for ARM (both for f64 and f32)
int num_out_of_range = 0;
for (size_t i = 0; i < size; ++i) {
// if abs value is smaller than the smallest positive fp16, but not zero
Expand Down

0 comments on commit a506b66

Please sign in to comment.