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

Method build_results

tensorflow/python/client/session.py:386–398  ·  view source on GitHub ↗
(self, values)

Source from the content-addressed store, hash-verified

384 return self._unique_fetches
385
386 def build_results(self, values):
387 # Create the list of results for each mapper.
388 results = []
389 for m, vi in zip(self._mappers, self._value_indices):
390 results.append(m.build_results([values[j] for j in vi]))
391 # Return a value of the original type of the fetches.
392 if issubclass(self._fetch_type, list):
393 return results
394 elif self._fetch_type == tuple:
395 return tuple(results)
396 else:
397 # This is the code path for namedtuple.
398 return self._fetch_type(*results)
399
400
401class _DictFetchMapper(_FetchMapper):

Callers

nothing calls this directly

Calls 3

tupleFunction · 0.85
appendMethod · 0.45
build_resultsMethod · 0.45

Tested by

no test coverage detected