szha commented on a change in pull request #10160: `gluon.Block.load_params` 
set the default `ctx` to cpu
URL: https://github.com/apache/incubator-mxnet/pull/10160#discussion_r175601040
 
 

 ##########
 File path: python/mxnet/gluon/block.py
 ##########
 @@ -299,7 +300,7 @@ def save_params(self, filename):
         """
         self.collect_params().save(filename, strip_prefix=self.prefix)
 
-    def load_params(self, filename, ctx, allow_missing=False,
+    def load_params(self, filename, ctx=cpu(), allow_missing=False,
 
 Review comment:
   update api doc with the new default value.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to