message: Hide methods and properties defined by the `tf.keras.layers.Layer` class.
  Note: that this will also hide sub-class overrides.
  Using the `do_not_generate_docs` decorator instead would un-hide overrides.
diff: @@ -89,6 +89,28 @@ class TfExportAwareDocGeneratorVisitor(
  return (canonical_score,) + scores
  +def _hide_layer_and_module_methods():
  + """Hide methods and properties defined in the base classes of keras layers."""
  + # __dict__ only sees attributes defined in *this* class, not on parent classes
  + module_contents = list(tf.Module.__dict__.items())
  + layer_contents = list(tf.keras.layers.Layer.__dict__.items())
  +
  + for name, obj in module_contents + layer_contents:
  + if name == "__init__":
  + continue
  +
  + if isinstance(obj, property):
  + obj = obj.fget
  +
  + if isinstance(obj, (staticmethod, classmethod)):
  + obj = obj.__func__
  +
  + try:
  + doc_controls.do_not_doc_in_subclasses(obj)
  + except AttributeError:
  + pass
  +
  +
  def build_docs(output_dir, code_url_prefix, search_hints=True):
  """Build api docs for tensorflow v2.
  @@ -97,6 +119,8 @@ def build_docs(output_dir, code_url_prefix, search_hints=True):
  code_url_prefix: prefix for "Defined in" links.
  search_hints: Bool. Include meta-data search hints at the top of each file.
  """
  + _hide_layer_and_module_methods()
  +
  try:
  doc_controls.do_not_generate_docs(tf.tools)
  except AttributeError:
  