Skip to content

Commit

Permalink
Fix union initialization and ncc style rules
Browse files Browse the repository at this point in the history
  • Loading branch information
praasz authored and beleiuandrei committed Jan 15, 2024
1 parent 688b71b commit c72808c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake/developer_package/ncc_naming_style/openvino.style
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# custom OpenVINO values
CppMethod: '^(operator\W+|[a-z_\d]+|signaling_NaN|quiet_NaN)$'
ClassName: '^([A-Z][\w]+|b?float16|f8e4m3|f8e5m2|numeric_limits|ngraph_error|stopwatch|unsupported_op)$'
ClassName: '^([A-Z][\w]+|b?float16|float8_e4m3|float8_e5m2|numeric_limits|ngraph_error|stopwatch|unsupported_op)$'
StructName: '^([A-Z][\w]+|element_type_traits|hash|oi_pair|stat)$'
FunctionName: '^(operator\W+|[a-z_\d]+)|PrintTo$'
Namespace: '^([a-z\d_]*|InferenceEngine)$'
Expand Down
2 changes: 1 addition & 1 deletion src/core/src/type/float8_e4m3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ uint8_t f32_to_f8e4m3_bits(const float value) {
uint32_t bits;
};

const auto input = f32_t{.value = value};
const auto input = f32_t{value};
auto f8_bits = static_cast<uint8_t>((input.bits & f32_s_mask) >> three_bytes_shift);

uint32_t f32_e_field = input.bits & f32_e_mask;
Expand Down

0 comments on commit c72808c

Please sign in to comment.