piiswrong commented on a change in pull request #7732: Update optimizer.py
URL: https://github.com/apache/incubator-mxnet/pull/7732#discussion_r137063049
 
 

 ##########
 File path: python/mxnet/optimizer.py
 ##########
 @@ -979,8 +979,9 @@ def sync_state_context(self, state, context):
     def set_states(self, states):
         """Sets updater states."""
         states = pickle.loads(states)
-        if isinstance(states, tuple) and len(states) == 2:
-            self.states, self.optimizer = states
+        if isinstance(states, dict):
 
 Review comment:
   why would it be a tuple?
 
----------------------------------------------------------------
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

Reply via email to