fix indentation

This commit is contained in:
Angus-Luo 2020-03-31 12:21:55 +08:00
parent bf967f19ab
commit f30aedc0e0
4 changed files with 31 additions and 31 deletions

View File

@ -311,7 +311,7 @@ def flatten(structure, expand_composites=False):
structure: an arbitrarily nested structure. Note, numpy arrays are
considered atoms and are not flattened.
expand_composites: If true, then composite tensors such as
tf.sparse.SparseTensor and tf.RaggedTensor are expanded into their
`tf.sparse.SparseTensor` and `tf.RaggedTensor` are expanded into their
component tensors.
Returns:
@ -766,7 +766,7 @@ def assert_shallow_structure(shallow_tree,
this function will consider two different namedtuple classes with the same
name and _fields attribute to be the same class.
expand_composites: If true, then composite tensors such as
tf.sparse.SparseTensor and tf.RaggedTensor are expanded into their
`tf.sparse.SparseTensor` and `tf.RaggedTensor` are expanded into their
component tensors.
Raises:
TypeError: If `shallow_tree` is a sequence but `input_tree` is not.
@ -916,7 +916,7 @@ def flatten_up_to(shallow_tree, input_tree, check_types=True,
check_types: bool. If True, check that each node in shallow_tree has the
same type as the corresponding node in input_tree.
expand_composites: If true, then composite tensors such as
tf.sparse.SparseTensor and tf.RaggedTensor are expanded into their
`tf.sparse.SparseTensor` and `tf.RaggedTensor` are expanded into their
component tensors.
Returns:
@ -1021,7 +1021,7 @@ def flatten_with_tuple_paths_up_to(shallow_tree,
check_types: bool. If True, check that each node in shallow_tree has the
same type as the corresponding node in input_tree.
expand_composites: If true, then composite tensors such as
tf.sparse.SparseTensor and tf.RaggedTensor are expanded into their
`tf.sparse.SparseTensor` and `tf.RaggedTensor` are expanded into their
component tensors.
Returns:
@ -1240,7 +1240,7 @@ def get_traverse_shallow_structure(traverse_fn, structure,
substructure to traverse.
structure: The structure to traverse.
expand_composites: If true, then composite tensors such as
tf.sparse.SparseTensor and tf.RaggedTensor are expanded into their
`tf.sparse.SparseTensor` and `tf.RaggedTensor` are expanded into their
component tensors.
Returns:
@ -1321,7 +1321,7 @@ def yield_flat_paths(nest, expand_composites=False):
Args:
nest: the value to produce a flattened paths list for.
expand_composites: If true, then composite tensors such as
tf.sparse.SparseTensor and tf.RaggedTensor are expanded into their
`tf.sparse.SparseTensor` and `tf.RaggedTensor` are expanded into their
component tensors.
Yields:
@ -1347,7 +1347,7 @@ def flatten_with_joined_string_paths(structure, separator="/",
separator: string to separate levels of hierarchy in the results, defaults
to '/'.
expand_composites: If true, then composite tensors such as
tf.sparse.SparseTensor and tf.RaggedTensor are expanded into their
`tf.sparse.SparseTensor` and `tf.RaggedTensor` are expanded into their
component tensors.
Returns:
@ -1372,7 +1372,7 @@ def flatten_with_tuple_paths(structure, expand_composites=False):
Args:
structure: the nested structure to flatten.
expand_composites: If true, then composite tensors such as
tf.sparse.SparseTensor and tf.RaggedTensor are expanded into their
`tf.sparse.SparseTensor` and `tf.RaggedTensor` are expanded into their
component tensors.
Returns: