You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by jx...@apache.org on 2017/11/25 22:02:51 UTC

[incubator-mxnet] branch master updated: Python 3 compatiblity during optimizer serialization. (#8334)

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

jxie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new c462d34  Python 3 compatiblity during optimizer serialization. (#8334)
c462d34 is described below

commit c462d343b0782e82a7a91d3dcccc3863bb947dff
Author: Tobias Domhan <td...@gmail.com>
AuthorDate: Sat Nov 25 23:02:49 2017 +0100

    Python 3 compatiblity during optimizer serialization. (#8334)
---
 python/mxnet/kvstore.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/mxnet/kvstore.py b/python/mxnet/kvstore.py
index d068d06..ad598d0 100644
--- a/python/mxnet/kvstore.py
+++ b/python/mxnet/kvstore.py
@@ -451,7 +451,7 @@ class KVStore(object):
             # send the optimizer to server
             try:
                 # use ASCII protocol 0, might be slower, but not a big ideal
-                optim_str = pickle.dumps(optimizer, 0)
+                optim_str = py_str(pickle.dumps(optimizer, 0))
             except:
                 raise
             self._send_command_to_servers(0, optim_str)

-- 
To stop receiving notification emails like this one, please contact
['"commits@mxnet.apache.org" <co...@mxnet.apache.org>'].