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

Method __init__

tensorflow/python/client/session.py:430–439  ·  view source on GitHub ↗

Creates a _AttrsFetchMapper. Args: fetches: An instance of an attrs decorated class.

(self, fetches)

Source from the content-addressed store, hash-verified

428 """Fetch mapper for attrs decorated classes."""
429
430 def __init__(self, fetches):
431 """Creates a _AttrsFetchMapper.
432
433 Args:
434 fetches: An instance of an attrs decorated class.
435 """
436 values = _get_attrs_values(fetches)
437 self._fetch_type = type(fetches)
438 self._mappers = [_FetchMapper.for_fetch(fetch) for fetch in values]
439 self._unique_fetches, self._value_indices = _uniquify_fetches(self._mappers)
440
441 def unique_fetches(self):
442 return self._unique_fetches

Callers

nothing calls this directly

Calls 4

_get_attrs_valuesFunction · 0.85
typeFunction · 0.85
_uniquify_fetchesFunction · 0.85
for_fetchMethod · 0.80

Tested by

no test coverage detected