We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c2cf1d commit b739f3dCopy full SHA for b739f3d
tools/tensorflow_docs/api_generator/parser.py
@@ -109,6 +109,10 @@ def _get_raw_docstring(py_object):
109
if result is None:
110
result = ''
111
112
+ lines = result.splitlines()
113
+ if lines and 'GENERATED' in lines[0]:
114
+ result = ''
115
+
116
result = _StripTODOs()(result)
117
result = _StripPylintAndPyformat()(result)
118
result = _AddDoctestFences()(result + '\n')
@@ -730,7 +734,7 @@ def get_defined_in(
730
734
end_line = None
731
735
else:
732
736
end_line = start_line + len(lines) - 1
733
- if 'MACHINE GENERATED' in lines[0]:
737
+ if 'GENERATED' in lines[0]:
738
# don't link to files generated by tf_export
739
return None
740
0 commit comments