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

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


The following commit(s) were added to refs/heads/v1.0.0 by this push:
     new 92d848f  fix check (#8791)
92d848f is described below

commit 92d848ff293b34e470b5f70f501c26b03ced07be
Author: Rahul Huilgol <rahulhuil...@gmail.com>
AuthorDate: Wed Nov 22 22:58:55 2017 -0800

    fix check (#8791)
    
    Signed-off-by: Rahul <rahulhuil...@gmail.com>
---
 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 a6d3aa5..23eb454 100644
--- a/python/mxnet/kvstore.py
+++ b/python/mxnet/kvstore.py
@@ -408,7 +408,7 @@ class KVStore(object):
             Other keys in this dictionary are optional and specific to the type
             of gradient compression.
         """
-        if (self.type == 'device') or ('dist' in self.type):
+        if ('device' in self.type) or ('dist' in self.type):
             ckeys, cvals = _ctype_dict(compression_params)
             check_call(_LIB.MXKVStoreSetGradientCompression(self.handle,
                                                             
mx_uint(len(compression_params)),

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

Reply via email to