From 0ba3119050465a6349eca421a07184ec07057d20 Mon Sep 17 00:00:00 2001 From: Zhenyu Tan Date: Tue, 4 Jun 2019 20:25:56 -0700 Subject: [PATCH] Fix description of input specs in assert_input_compatibility PiperOrigin-RevId: 251569439 --- tensorflow/python/keras/engine/input_spec.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tensorflow/python/keras/engine/input_spec.py b/tensorflow/python/keras/engine/input_spec.py index 8d4e8e6d5d9..d790af4798f 100644 --- a/tensorflow/python/keras/engine/input_spec.py +++ b/tensorflow/python/keras/engine/input_spec.py @@ -133,8 +133,10 @@ def assert_input_compatibility(input_spec, inputs, layer_name): of a layer (if any). If not, a clear and actional exception gets raised. Arguments: - input_spec: An InputSpec instance, or None. - inputs: Input tensor or list of input tensors. + input_spec: An InputSpec instance, list of InputSpec instances, a nested + structure of InputSpec instances, or None. + inputs: Input tensor, list of input tensors, or a nested structure of + input tensors. layer_name: String, name of the layer (for error message formatting). Raises: