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/12/18 19:43:25 UTC

[GitHub] aaronmarkham commented on a change in pull request #13597: [MXNET-1255] update hybridize documentation

aaronmarkham commented on a change in pull request #13597: [MXNET-1255] update hybridize documentation
URL: https://github.com/apache/incubator-mxnet/pull/13597#discussion_r242669471
 
 

 ##########
 File path: docs/tutorials/gluon/hybrid.md
 ##########
 @@ -137,4 +137,94 @@ to gluon with `SymbolBlock`:
 net2 = gluon.SymbolBlock.imports('model-symbol.json', ['data'], 'model-0001.params')
 ```
 
+## Operators that does not work with hybridize
+
+If you want to hybridize your model, you must use `F.some_operator` in your 'hybrid_forward' function, F will be 'mxnet.nd' before you hybridize and 'mxnet.sym' after hybridize. While most APIs are the same in NDArray and Symbol,  there are some differences. Writing `F.some_operator` and call `hybridize` may not work all the time.
 
 Review comment:
   ```suggestion
   If you want to hybridize your model, you must use `F.some_operator` in your 'hybrid_forward' function. 
   `F` will be 'mxnet.nd' before you hybridize and 'mxnet.sym' after hybridize. While most APIs are the same in NDArray and Symbol,  there are some differences. Writing `F.some_operator` and call `hybridize` may not work all of the time.
   ```

----------------------------------------------------------------
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