Skip to content

Commit

Permalink
Using >= is being deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-savelyevv committed Jan 23, 2025
1 parent de87bcf commit d86cf54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nncf/openvino/optimized_functions/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ def _build_compress_model(
w_max = opset.reduce_max(weight, reduction_axes=reduction_axes, keep_dims=True)
w_abs_min, w_max = opset.convert(w_abs_min, ov.Type.f32), opset.convert(w_max, ov.Type.f32)

scale = opset.select(w_abs_min >= w_max, w_abs_min, opset.negative(w_max))
scale = opset.select(opset.greater_equal(w_abs_min, w_max, w_abs_min), opset.negative(w_max))
scale = divide_op(scale, opset.constant(-level_low, ov.Type.f32))
scale = opset.select(opset.less(opset.abs(scale), eps), eps, scale)

Expand Down

0 comments on commit d86cf54

Please sign in to comment.