Skip to content

Commit

Permalink
fix callBigDLFunc return a Int while the true return value from java …
Browse files Browse the repository at this point in the history
…is a byte array. (intel-analytics#3111)
  • Loading branch information
qiuxin2012 committed Mar 23, 2021
1 parent e273ae0 commit 1ccef7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/dllib/src/bigdl/dllib/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,8 +634,8 @@ def _java2py(gateway, r, encoding="bytes"):
except Py4JJavaError:
pass # not pickable

if isinstance(r, (bytearray, bytes)):
r = PickleSerializer().loads(bytes(r), encoding=encoding)
if isinstance(r, (bytearray, bytes)):
r = PickleSerializer().loads(bytes(r), encoding=encoding)
return r


Expand Down

0 comments on commit 1ccef7f

Please sign in to comment.