You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2020/05/22 16:37:54 UTC

[GitHub] [incubator-mxnet] szha commented on a change in pull request #17970: fix block.export

szha commented on a change in pull request #17970:
URL: https://github.com/apache/incubator-mxnet/pull/17970#discussion_r429346195



##########
File path: python/mxnet/gluon/block.py
##########
@@ -1248,7 +1248,11 @@ def export(self, path, epoch=0, remove_amp_cast=True):
             will be created, where xxxx is the 4 digits epoch number.
         epoch : int
             Epoch number of saved model.
-
+        remove_amp_cast : bool, optional
+            Whether to remove the amp_cast and amp_multicast operators, before exporting the model.
+        allow_extra : bool, optional
+            Whether to save extra parameters whose name not in the result symbol. User can set
+            allow_extra to True to load these parameters with old mxnet.mod.Module.set_params api.

Review comment:
       ```suggestion
               Whether to save extra parameters whose names are not in the result symbol.
               User can set allow_extra to True to load these parameters with old mxnet.mod.Module.set_params API.
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org