MCPcopy Create free account
hub / github.com/alibaba/nann / _flatten

Method _flatten

tensorflow/tensorflow/python/module/module.py:195–258  ·  view source on GitHub ↗

Flattened attribute values in sorted order by attribute name. Modules are flattened by first walking their attributes in name order. Each attribute value is then flattened to find leaf values. If flatten is to be applied `recursive`ly then if the leaf is a `Module` it will also be f

(self,
               recursive=True,
               predicate=None,
               attribute_traversal_key=None,
               with_path=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 6

variablesMethod · 0.95
trainable_variablesMethod · 0.95
submodulesMethod · 0.95
test_with_pathMethod · 0.95
test_flattenMethod · 0.45
variablesMethod · 0.45

Calls 1

_flatten_moduleFunction · 0.85

Tested by 3

test_with_pathMethod · 0.76
test_flattenMethod · 0.36
variablesMethod · 0.36