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

Function _convert_to_list

tensorflow/python/tpu/training_loop.py:201–205  ·  view source on GitHub ↗
(xs)

Source from the content-addressed store, hash-verified

199 ValueError: if there is a type error.
200 """
201 def _convert_to_list(xs):
202 if not isinstance(xs, (list, tuple)):
203 return [xs]
204 else:
205 return list(xs)
206
207 def cond(i, *args):
208 del args

Callers 2

body_wrapperFunction · 0.85
repeatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected