We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da7754c commit d0acc8bCopy full SHA for d0acc8b
keras/src/backend/openvino/numpy.py
@@ -839,10 +839,11 @@ def log10(x):
839
x = get_ov_output(x)
840
x_type = x.get_element_type()
841
if x_type.is_integral():
842
- ov_type = OPENVINO_DTYPES[config.floatx()]
843
- x = ov_opset.convert(x, ov_type)
+ x_type = OPENVINO_DTYPES[config.floatx()]
+ x = ov_opset.convert(x, x_type)
844
log_x = ov_opset.log(x).output(0)
845
- log_10 = ov_opset.constant(np.log(10), log_x.get_element_type()).output(0)
+ const_10 = ov_opset.constant(10, x_type).output(0)
846
+ log_10 = ov_opset.log(const_10).output(0)
847
result = ov_opset.divide(log_x, log_10).output(0)
848
return OpenVINOKerasTensor(result)
849
0 commit comments