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

Function _ProcessReturnElementsParam

tensorflow/python/framework/importer.py:128–135  ·  view source on GitHub ↗

Type-checks and possibly canonicalizes `return_elements`.

(return_elements)

Source from the content-addressed store, hash-verified

126
127
128def _ProcessReturnElementsParam(return_elements):
129 """Type-checks and possibly canonicalizes `return_elements`."""
130 if return_elements is None:
131 return None
132 if not all(
133 isinstance(x, compat.bytes_or_text_types) for x in return_elements):
134 raise TypeError('return_elements must be a list of strings.')
135 return tuple(compat.as_str(x) for x in return_elements)
136
137
138def _FindAttrInOpDef(attr_name, op_def):

Callers 1

Calls 2

allFunction · 0.85
tupleFunction · 0.85

Tested by

no test coverage detected