Install
Gluon
About
Dive into Deep Learning
GluonCV Toolkit
GluonNLP Toolkit
API
Python
C++
Clojure
Java
Julia
Perl
R
Scala
Docs
FAQ
Tutorials
Examples
Architecture
Developer Wiki
Model Zoo
ONNX
Community
Forum
Github
Contribute
Ecosystem
Powered By
1.5.0
master
1.7.0
1.6.0
1.5.0
1.4.1
1.3.1
1.2.1
1.1.0
1.0.0
0.12.1
0.11.0
☰
Install
Tutorials
Gluon
About
The Straight Dope (Tutorials)
GluonCV Toolkit
GluonNLP Toolkit
API
Python
C++
Clojure
Java
Julia
Perl
R
Scala
Docs
FAQ
Tutorials
Examples
Architecture
Developer Wiki
Gluon Model Zoo
ONNX
Community
Forum
Github
Contribute
Ecosystem
Powered By
1.5.0
master
1.6.0
1.5.0
1.4.1
1.3.1
1.2.1
1.1.0
1.0.0
0.12.1
0.11.0
MXNet APIs
MXNet Architecture
MXNet Community
MXNet FAQ
About Gluon
Installing MXNet
Nvidia Jetson TX family
Source Download
MXNet Model Zoo
Tutorials
Tutorials
¶
Hybridize Gluon models with control flows.
Prepare running the code
foreach
Example 1:
foreach
works like map
Example 2:
foreach
works like scan
Example 3:
foreach
with both outputs and states
Example 4: use
foreach
to run an RNN on a variable-length sequence
while_loop
Example 5: scan with while_loop
cond
Example 6: skip RNN computation with cond