message: Improve error message for invalid TensorSpecs in func_graph.py
diff: @@ -1196,7 +1196,9 @@ def _get_defun_inputs(args, names, structure, flat_shapes=None):
  specified_names = [arg.name for arg in tensor_specs if arg.name]
  if specified_names and len(specified_names) < len(tensor_specs):
  raise ValueError("If specifying TensorSpec names for nested structures, "
  - "either zero or all names have to be specified.")
  + "either zero or all names have to be specified. "
  + "TensorSpecs: {}, specified names: {}".format(
  + tensor_specs, specified_names))
  for arg in flattened:
  # We have a shape entry for each arg, regardless of whether it's a real
  