Skip to content

Commit

Permalink
fix check (#8791)
Browse files Browse the repository at this point in the history
Signed-off-by: Rahul <rahulhuilgol@gmail.com>
  • Loading branch information
rahul003 authored and eric-haibin-lin committed Nov 23, 2017
1 parent fef1841 commit 92d848f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/mxnet/kvstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def set_gradient_compression(self, compression_params):
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)),
Expand Down

0 comments on commit 92d848f

Please sign in to comment.