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

Function _ProcessInputMapParam

tensorflow/python/framework/importer.py:116–125  ·  view source on GitHub ↗

Type-checks and possibly canonicalizes `input_map`.

(input_map)

Source from the content-addressed store, hash-verified

114
115
116def _ProcessInputMapParam(input_map):
117 """Type-checks and possibly canonicalizes `input_map`."""
118 if input_map is None:
119 input_map = {}
120 else:
121 if not (isinstance(input_map, dict) and all(
122 isinstance(k, compat.bytes_or_text_types) for k in input_map.keys())):
123 raise TypeError('input_map must be a dictionary mapping strings to '
124 'Tensor objects.')
125 return input_map
126
127
128def _ProcessReturnElementsParam(return_elements):

Callers 1

Calls 2

allFunction · 0.85
keysMethod · 0.45

Tested by

no test coverage detected