class_docstr: Gathers and serializes a trackable view.
  
  Example usage:
  
  >>> class SimpleModule(tf.Module):
  ...   def __init__(self, name=None):
  ...     super().__init__(name=name)
  ...     self.a_var = tf.Variable(5.0)
  ...     self.b_var = tf.Variable(4.0)
  ...     self.vars = [tf.Variable(1.0), tf.Variable(2.0)]
  
  >>> root = SimpleModule(name="root")
  >>> root.leaf = SimpleModule(name="leaf")
  >>> trackable_view = tf.train.TrackableView(root)
  
  Pass root to tf.train.TrackableView.children() to get the dictionary of all
  children directly linked to root by name.
  >>> trackable_view_children = trackable_view.children(root)
  >>> for item in trackable_view_children.items():
  ...   print(item)
  ('a_var', <tf.Variable 'Variable:0' shape=() dtype=float32, numpy=5.0>)
  ('b_var', <tf.Variable 'Variable:0' shape=() dtype=float32, numpy=4.0>)
  ('vars', ListWrapper([<tf.Variable 'Variable:0' shape=() dtype=float32,
  numpy=1.0>, <tf.Variable 'Variable:0' shape=() dtype=float32, numpy=2.0>]))
  ('leaf', ...)
class_docstr_tok: ["Gathers","and","serializes","a","trackable","view",".","Example","usage",":",">",">",">","class","SimpleModule","(","tf.Module",")",":","...","def","__init__","(","self",",","name=None",")",":","...","super","(",")",".__init__","(","name=name",")","...","self.a_var","=","tf.Variable","(","5.0",")","...","self.b_var","=","tf.Variable","(","4.0",")","...","self.vars","=","[","tf.Variable","(","1.0",")",",","tf.Variable","(","2.0",")","]",">",">",">","root","=","SimpleModule","(","name=","''","root","''",")",">",">",">","root.leaf","=","SimpleModule","(","name=","''","leaf","''",")",">",">",">","trackable_view","=","tf.train.TrackableView","(","root",")","Pass","root","to","tf.train.TrackableView.children","(",")","to","get","the","dictionary","of","all","children","directly","linked","to","root","by","name",".",">",">",">","trackable_view_children","=","trackable_view.children","(","root",")",">",">",">","for","item","in","trackable_view_children.items","(",")",":","...","print","(","item",")","(","'a_var","'",",","<","tf.Variable","'Variable:0","'","shape=","(",")","dtype=float32",",","numpy=5.0",">",")","(","'b_var","'",",","<","tf.Variable","'Variable:0","'","shape=","(",")","dtype=float32",",","numpy=4.0",">",")","(","'vars","'",",","ListWrapper","(","[","<","tf.Variable","'Variable:0","'","shape=","(",")","dtype=float32",",","numpy=1.0",">",",","<","tf.Variable","'Variable:0","'","shape=","(",")","dtype=float32",",","numpy=2.0",">","]",")",")","(","'leaf","'",",","...",")"]
docstr: Returns a list of all nodes from self.root using a breadth first traversal.
docstr_tok: ["Returns","a","list","of","all","nodes","from","self.root","using","a","breadth","first","traversal","."]
code: def descendants(self):
      """Returns a list of all nodes from self.root using a breadth first traversal."""
      return self._descendants_with_paths()[0]
  
file_path: tensorflow/tensorflow/python/checkpoint/trackable_view.py
imports: import collections
  import weakref
  from tensorflow.python.trackable import base
  from tensorflow.python.trackable import converter
  from tensorflow.python.util import object_identity
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 4 for calling the TrackableView obj's underlying member method code with example usage: obj.descendants() and returns: self