The Optimizer base class sections were replicated in the child classes.

Fix that by adding do_not_doc_in_subclasses on all the attributes.

PiperOrigin-RevId: 338525045
Change-Id: Ied75b34307e8c7f8e5a8a7c35199d33a64fe20cf
This commit is contained in:
Yash Katariya 2020-10-22 12:22:28 -07:00 committed by TensorFlower Gardener
parent 11c628e04e
commit d3095a15b6

View File

@ -173,7 +173,7 @@ def build_docs(output_dir, code_url_prefix, search_hints, gen_report):
if not name.startswith("_"):
doc_controls.hide_from_search(obj)
for cls in [tf.Module, tf.keras.layers.Layer]:
for cls in [tf.Module, tf.keras.layers.Layer, tf.keras.optimizers.Optimizer]:
doc_controls.decorate_all_class_attributes(
decorator=doc_controls.do_not_doc_in_subclasses,
cls=cls,