![]() |
A visitor that generates docs for a python object when called.
tfdocs.doc_generator_visitor.DocGeneratorVisitor()
Child Classes
Methods
build
build()
Compute data structures containing information about duplicates.
Find duplicates in index
and decide on one to be the "main" name.
Computes a reverse_index mapping each object id to its main name.
Also computes a map duplicate_of
from aliases to their main name (the
main name itself has no entry in this map), and a map duplicates
from
main names to a lexicographically sorted list of all aliases for that name
(incl. the main name).
All these are computed and set as fields if they haven't already.
__call__
__call__(
parent_path, parent, children
)
Visitor interface, see tensorflow/tools/common:traverse
for details.
This method is called for each symbol found in a traversal using
tensorflow/tools/common:traverse
. It should not be called directly in
user code.
Args | |
---|---|
parent_path
|
A tuple of strings. The fully qualified path to a symbol found during traversal. |
parent
|
The Python object referenced by parent_name .
|
children
|
A list of (name, py_object) pairs enumerating, in alphabetical
order, the children (as determined by inspect.getmembers ) of
parent . name is the local name of py_object in parent .
|
Returns | |
---|---|
The list of children, with any metaclass removed. |
Raises | |
---|---|
RuntimeError
|
If this visitor is called with a parent that is not a
class or module.
|