eric-haibin-lin closed pull request #8791: Fix check of kvstore type URL: https://github.com/apache/incubator-mxnet/pull/8791
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/python/mxnet/kvstore.py b/python/mxnet/kvstore.py index a6d3aa519f..23eb454b5b 100644 --- a/python/mxnet/kvstore.py +++ b/python/mxnet/kvstore.py @@ -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)), ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services