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 2018/06/04 20:41:08 UTC

[GitHub] ThomasDelteil commented on a change in pull request #11127: add import_ for SymbolBlock

ThomasDelteil commented on a change in pull request #11127: add import_ for SymbolBlock
URL: https://github.com/apache/incubator-mxnet/pull/11127#discussion_r192873630
 
 

 ##########
 File path: python/mxnet/gluon/block.py
 ##########
 @@ -885,6 +885,50 @@ class SymbolBlock(HybridBlock):
     >>> x = mx.nd.random.normal(shape=(16, 3, 224, 224))
     >>> print(feat_model(x))
     """
+    @staticmethod
+    def import_(symbol_file, input_names, param_file=None, ctx=None):
 
 Review comment:
   I don't think `import_` is a great name, even though I understand that we want to be as close as possible to `.export` and `import being a key-word makes it impossible to use `.import()`.
   I would suggest adding an alias to export, `export_symbols` `export_to_symbol` `export_hybridized`, etc and have the matching one for import. That way it would be clearer, as adding a `_` suffix is not a conventionnal thing to do and is close to the use of `_` as a prefix, which is for private functions.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services