"<!--TODO(markdaoust) link to full examples or these referenced models.-->\n",
"<!--TODO(markdaoust) link to full examples or these referenced models.-->\n",
"\n",
"\n",
"The easiest way is to `@autograph.convert()` the `call` method. See the [keras guide](https://tensorflow.org/guide/keras#build_advanced_models) for details on how to build on these classes. \n",
"The easiest way to use autograph is keras layers and models is to `@autograph.convert()` the `call` method. See the [keras guide](https://tensorflow.org/guide/keras#build_advanced_models) for details on how to build on these classes. \n",
"\n",
"\n",
"Here is a simple example of the [stocastic network depth](https://arxiv.org/abs/1603.09382) technique :"
"Here is a simple example of the [stocastic network depth](https://arxiv.org/abs/1603.09382) technique :"
]
]
...
@@ -857,102 +857,6 @@
...
@@ -857,102 +857,6 @@
"execution_count": 0,
"execution_count": 0,
"outputs": []
"outputs": []
},
},
{
"metadata": {
"id": "cpUD21HQWcOq",
"colab_type": "text"
},
"cell_type": "markdown",
"source": [
"### RNN Cells\n",
"\n",
"The [standard approach](https://www.tensorflow.org/api_docs/python/tf/keras/layers/RNN) to custom RNN cells has the same issues that are solved by autograph.\n",
"\n",
"Implementing RNN cells with `autograph` is not much different from implementing them [under eager execution](https://colab.sandbox.google.com/github/tensorflow/tensorflow/blob/master/tensorflow/contrib/eager/python/examples/nmt_with_attention/nmt_with_attention.ipynb).\n",
"\n",
"To implement the prediction step in a keras model you could say:\n",