MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / is_iterable

Function is_iterable

tensorflow/python/ops/op_selector.py:32–40  ·  view source on GitHub ↗

Return true if the object is iterable.

(obj)

Source from the content-addressed store, hash-verified

30
31
32def is_iterable(obj):
33 """Return true if the object is iterable."""
34 if isinstance(obj, ops.Tensor):
35 return False
36 try:
37 _ = iter(obj)
38 except Exception: # pylint: disable=broad-except
39 return False
40 return True
41
42
43def concatenate_unique(la, lb):

Callers 4

get_unique_graphFunction · 0.70
make_list_of_tFunction · 0.70
make_list_of_opFunction · 0.70
get_backward_walk_opsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected