check of linked DAAL version during assert_all_finite function monkeypatching
@@ -61,8 +61,9 @@ from ..utils.validation import _daal_assert_all_finite
from daal4py import __version__ as daal4py_version
-from daal4py import __daal_run_version__
+from daal4py import __daal_run_version__, __daal_link_version__
daal_run_version = tuple(map(int, (__daal_run_version__[0:4], __daal_run_version__[4:8])))
+daal_link_version = tuple(map(int, (__daal_link_version__[0:4], __daal_link_version__[4:8])))
_mapping = {
'pca': [[(decomposition_module, 'PCA', PCA_daal4py), None]],
@@ -84,7 +85,7 @@ try:
except ImportError:
pass
-if daal_run_version >= (2020, 1):
+if daal_run_version >= (2020, 1) and daal_link_version >= (2020, 1):
_mapping['fin_check'] = [[(validation, '_assert_all_finite', _daal_assert_all_finite), None]]
