Skip to content

Commit

Permalink
fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
evkotov committed Apr 5, 2024
1 parent befa71f commit 428672f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ size_t get_hidden_size_from_bias_shape(const ov::Shape& shape, bool& is_shape_co
bool is_w_weights_shape_correct(const ov::Shape& shape, bool weights_transposed, size_t hidden_size) {
if (shape.size() != 2)
return false;
const size_t hidden_size_4_idx = weights_transposed ? 0 : 1;
const std::ptrdiff_t hidden_size_4_idx = weights_transposed ? 0 : 1;
if (shape[hidden_size_4_idx] % 4)
return false;
return (shape[hidden_size_4_idx] / 4) == hidden_size;
Expand All @@ -402,8 +402,8 @@ bool is_w_weights_shape_correct(const ov::Shape& shape, bool weights_transposed,
bool is_r_weights_shape_correct(const ov::Shape& shape, bool is_r_weights_transposed, size_t hidden_size) {
if (shape.size() != 2)
return false;
const size_t hidden_size_idx = is_r_weights_transposed ? 1 : 0;
const size_t hidden_size_4_idx = is_r_weights_transposed ? 0 : 1;
const std::ptrdiff_t hidden_size_idx = is_r_weights_transposed ? 1 : 0;
const std::ptrdiff_t hidden_size_4_idx = is_r_weights_transposed ? 0 : 1;
if (shape[hidden_size_4_idx] % 4)
return false;
return shape[hidden_size_4_idx] / 4 == shape[hidden_size_idx] && shape[hidden_size_idx] == hidden_size;
Expand Down Expand Up @@ -443,7 +443,7 @@ ov::pass::LSTMCellTfKerasFusion::LSTMCellTfKerasFusion() {
auto split_label = pattern::wrap_type<op::v1::Split>({bias_add_label, axis_label});
auto it_label = pattern::wrap_type<op::v0::Relu, op::v0::Sigmoid, op::v0::Tanh>({split_label});
auto ct_label = pattern::wrap_type<op::v0::Relu, op::v0::Sigmoid, op::v0::Tanh>({split_label});
auto ft_label = pattern::wrap_type<op::v0::Relu, op::v0::Sigmoid, op::v0::Tanh>({/*add_label*/ split_label});
auto ft_label = pattern::wrap_type<op::v0::Relu, op::v0::Sigmoid, op::v0::Tanh>({split_label});
auto ot_label = pattern::wrap_type<op::v0::Relu, op::v0::Sigmoid, op::v0::Tanh>({split_label});
auto mul_label = pattern::wrap_type<op::v1::Multiply>({it_label, ct_label});
auto c_label = pattern::any_input();
Expand Down

0 comments on commit 428672f

Please sign in to comment.