Skip to content

Commit

Permalink
build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
isanghao committed Aug 6, 2024
1 parent b6a15c6 commit 28a4669
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/common/transformations/src/ov_ops/dynamic_quantize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ std::vector<ov::PartialShape> DynamicQuantize::shape_infer(const DynamicQuantize
if (group_sizes[i] == UINT64_MAX)
scale_shape[i] = 1;
else {
scale_shape[i] /= group_sizes[i]; // if group_size is larger than shape, scale_shape will be 1
scale_shape[i] = std::max(scale_shape[i].get_length(), 1L);
// if group_size is larger than shape, scale_shape will be 1
scale_shape[i] /= group_sizes[i];
if (scale_shape[i] == 0)
scale_shape[i] = 1;
}
}
out_shapes.push_back(scale_shape);
Expand Down

0 comments on commit 28a4669

Please sign in to comment.