STT-tensorflow/tensorflow/python/keras/utils
Reed Wanderman-Milne bb2e09ad72 Do not crash if Model.summary called on subclassed model with unused layer.
Fixes https://github.com/tensorflow/tensorflow/issues/36198. Before, the error was in the form:

  ValueError: You tried to call `count_params` on concatenate, but the layer isn't built. You can build it manually via: `concatenate.build(batch_input_shape)`.

PiperOrigin-RevId: 345486596
Change-Id: I334994d3b31e53af40be7c33261f4e3af5d799b2
2020-12-03 10:54:34 -08:00
..
__init__.py
all_utils.py Remove tf.keras.utils.HDF5Matrix as its deprecation date is overdue. 2020-09-15 14:04:10 -07:00
BUILD Fork the object_identity related class to Keras. 2020-10-30 15:17:53 -07:00
composite_tensor_support_test.py Copy the generate_combinations_with_testcase_name to keras testing_utils 2020-09-11 15:03:21 -07:00
control_flow_util.py Remove usage of smart_cond.smart_constant_value from Keras. 2020-09-11 17:10:46 -07:00
conv_utils_test.py
conv_utils.py Remove tf.keras.utils.convert_all_kernels_in_model as its deprecation date is overdue. 2020-09-14 10:13:27 -07:00
data_utils_test.py
data_utils.py Remove tf.keras.experimental.terminate_keras_multiprocessing_pools as its deprecation date is overdue. 2020-09-15 13:16:28 -07:00
generic_utils_test.py Improve error message when Keras is unable to find a custom object. 2020-11-17 12:25:13 -08:00
generic_utils.py Improve error message when Keras is unable to find a custom object. 2020-11-17 12:25:13 -08:00
io_utils_test.py Remove tf.keras.utils.HDF5Matrix as its deprecation date is overdue. 2020-09-15 14:04:10 -07:00
io_utils.py Remove tf.keras.utils.HDF5Matrix as its deprecation date is overdue. 2020-09-15 14:04:10 -07:00
kernelized_utils_test.py
kernelized_utils.py
layer_utils_test.py Move cached_per_instance to keras utils since its only used in Keras. 2020-08-14 10:14:53 -07:00
layer_utils.py Do not crash if Model.summary called on subclassed model with unused layer. 2020-12-03 10:54:34 -08:00
losses_utils.py Update file format. 2020-09-29 13:21:01 -07:00
metrics_utils_test.py Update keras test to use public TF test API. 2020-10-27 16:03:04 -07:00
metrics_utils.py Internal change 2020-10-04 21:20:32 -07:00
mode_keys.py
multi_gpu_utils_test.py Move V1 optimizer code to a separate file optimizer_v1.py from the generic utils in optimizers.py. 2020-09-24 05:34:47 -07:00
multi_gpu_utils.py Remove the public API tf.keras.utils.multi_gpu_model as its deprecation date is overdue. 2020-09-16 17:30:34 -07:00
np_utils_test.py
np_utils.py
object_identity.py Fork the object_identity related class to Keras. 2020-10-30 15:17:53 -07:00
tf_contextlib.py Fork the tf_contextlib to keras and use tf_decorator which is a __internal__ API. 2020-09-15 10:02:27 -07:00
tf_inspect.py Make the individual call of Model.evaluate use no cached data, while Model.fit still uses cached data for evaluation. 2020-10-14 16:33:47 -07:00
tf_utils_test.py Switch all CompositeTensor instance checks in Keras to use a centralized tf_utils.is_extension_type util. This util will use the public ExtensionType api once it is in place. 2020-09-21 17:30:33 -07:00
tf_utils.py Update keras to use tf.__internal__ APIs. 2020-11-05 10:47:58 -08:00
version_utils_test.py Move away from deprecated asserts 2020-06-30 16:10:22 -07:00
version_utils.py Remove references to private TF LazyLoader class by reimplementing it in Keras generic_utils. 2020-07-17 15:59:15 -07:00
vis_utils_test.py Update Keras code to use public TF file API. 2020-08-24 10:10:09 -07:00
vis_utils.py Replaced the batch sizes with 'None' instead '?' 2020-07-26 23:39:47 +05:30