Partial update of tf.keras to the Keras 2.1.6 API.
authorFrancois Chollet <fchollet@google.com>
Fri, 11 May 2018 00:42:27 +0000 (17:42 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Fri, 11 May 2018 00:45:21 +0000 (17:45 -0700)
commitcf4cc8542fd71dcc05226c487329275cd6bf3e6a
treebbe64d45ad0a7bff8a3faa8a99061f580fae2812
parent03d770b78d4cb799ce7945adcbc8ac10fe6f4d38
Partial update of tf.keras to the Keras 2.1.6 API.

This covers the following features and associated unit tests:
- multi-output layer where `compute_output_mask` returns `None`.
- saving to, and loading from, an existing hdf5 file.
- `verbose` argument (1/0) in `evaluate_generator`.
- stateful metrics with generator methods.
- `data_format` argument in `Flatten`.
- `constants` argument in Bidirectional's `__call__`.

PiperOrigin-RevId: 196198134
27 files changed:
tensorflow/python/keras/BUILD
tensorflow/python/keras/_impl/keras/__init__.py
tensorflow/python/keras/_impl/keras/applications/vgg16.py
tensorflow/python/keras/_impl/keras/applications/vgg19.py
tensorflow/python/keras/_impl/keras/callbacks.py
tensorflow/python/keras/_impl/keras/engine/network.py
tensorflow/python/keras/_impl/keras/engine/saving.py
tensorflow/python/keras/_impl/keras/engine/saving_test.py
tensorflow/python/keras/_impl/keras/engine/topology_test.py
tensorflow/python/keras/_impl/keras/engine/training.py
tensorflow/python/keras/_impl/keras/engine/training_arrays.py
tensorflow/python/keras/_impl/keras/engine/training_generator.py
tensorflow/python/keras/_impl/keras/engine/training_test.py
tensorflow/python/keras/_impl/keras/layers/convolutional_recurrent.py
tensorflow/python/keras/_impl/keras/layers/core.py
tensorflow/python/keras/_impl/keras/layers/core_test.py
tensorflow/python/keras/_impl/keras/layers/recurrent.py
tensorflow/python/keras/_impl/keras/layers/wrappers.py
tensorflow/python/keras/_impl/keras/layers/wrappers_test.py
tensorflow/python/keras/_impl/keras/metrics_test.py
tensorflow/tools/api/golden/tensorflow.keras.-model.pbtxt
tensorflow/tools/api/golden/tensorflow.keras.-sequential.pbtxt
tensorflow/tools/api/golden/tensorflow.keras.layers.-bidirectional.pbtxt
tensorflow/tools/api/golden/tensorflow.keras.layers.-flatten.pbtxt
tensorflow/tools/api/golden/tensorflow.keras.models.-model.pbtxt
tensorflow/tools/api/golden/tensorflow.keras.models.-sequential.pbtxt
tensorflow/tools/api/golden/tensorflow.layers.-flatten.pbtxt