You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@systemds.apache.org by ba...@apache.org on 2020/08/13 13:51:20 UTC

[systemds] branch master updated: [MINOR] Fix deprication warning Python

This is an automated email from the ASF dual-hosted git repository.

baunsgaard pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/systemds.git


The following commit(s) were added to refs/heads/master by this push:
     new f3144e8  [MINOR] Fix deprication warning Python
f3144e8 is described below

commit f3144e818a5d1c5956b8ec3e04e03966009d79d1
Author: baunsgaard <ba...@tugraz.at>
AuthorDate: Thu Aug 13 15:50:57 2020 +0200

    [MINOR] Fix deprication warning Python
---
 src/main/python/systemds/utils/converters.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/python/systemds/utils/converters.py b/src/main/python/systemds/utils/converters.py
index eeba836..458cfb9 100644
--- a/src/main/python/systemds/utils/converters.py
+++ b/src/main/python/systemds/utils/converters.py
@@ -42,7 +42,7 @@ def numpy_to_matrix_block(jvm: JVMView, np_arr: np.array):
     else:
         arr = np_arr.ravel().astype(np.float64)
         value_type = jvm.org.apache.sysds.common.Types.ValueType.FP64
-    buf = bytearray(arr.tostring())
+    buf = bytearray(arr.tobytes())
     convert_method = jvm.org.apache.sysds.runtime.util.Py4jConverterUtils.convertPy4JArrayToMB
     return convert_method(buf, rows, cols, value_type)