aaronmarkham commented on a change in pull request #12340: Add a tutorial for control flow operators. URL: https://github.com/apache/incubator-mxnet/pull/12340#discussion_r212779049
########## File path: docs/tutorials/control_flow/ControlFlowTutorial.md ########## @@ -0,0 +1,386 @@ + +MXNet currently provides three control flow operators: `cond`, `foreach` and `while_loop`. Like other MXNet operators, they all have a version for NDArray and a version for Symbol. These two versions have exactly the same semantics. We can take advantage of this and use them in Gluon to hybridize models. + +In this tutorial, we use a few examples to demonstrate the use of control flow operators in Gluon and show how a model that requires control flow is hybridized. + +# Prepare running the code + + +```python +import mxnet as mx +from mxnet.gluon import HybridBlock +``` + +# foreach Review comment: I'd go to two hashes for your subsections and only use the single hash for the document title. ---------------------------------------------------------------- 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
