You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"## Advanced example: A training, loop in-graph\n",
592
+
"## Advanced example: A training loop in-graph\n",
582
593
"\n",
583
594
"Writing control flow in AutoGraph is easy, so running a training loop in a TensorFlow graph should be easy as well! \n",
584
595
"\n",
596
+
"<!--TODO(markdaoust) link to examples showing autograph **in** keras models when ready-->\n",
597
+
"\n",
598
+
"Important: While this example wraps up a `tf.keras.Model` using autograph, `tf.contrib.autograph` is fully compatible with `tf.keras` and can be used in the definitions [custom of keras layers and models](http://tensorflow.org/guide/keras#build_advanced_models). The easiest way is to `@autograph.convert()` the `call` method.\n",
599
+
"\n",
585
600
"Here, we show an example of training a simple Keras model on MNIST, where the entire training process -- loading batches, calculating gradients, updating parameters, calculating validation accuracy, and repeating until convergence -- is done in-graph."
586
601
]
587
602
},
@@ -700,20 +715,20 @@
700
715
" # to convert these lists into their graph equivalent,\n",
701
716
" # we need to specify the element type of the lists.\n",
0 commit comments