replace with this to avoid redundant checks and lines of code.
```
if isinstance(update_freq, int) and update_freq>0:
           self.update_freq = update_freq
else:
           raise TypeError("update_freq in SVRGModule must be a positive 
integer to represent the frequency for calculating full gradients")
```

[ Full content available at: 
https://github.com/apache/incubator-mxnet/pull/12376 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to