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

Method __init__

tensorflow/python/training/tracking/data_structures.py:595–602  ·  view source on GitHub ↗

Construct a new sequence. Arguments are passed to `dict()`.

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

593 """
594
595 def __init__(self, *args, **kwargs):
596 """Construct a new sequence. Arguments are passed to `dict()`."""
597 super(Mapping, self).__init__()
598 self._storage = self._make_storage(*args, **kwargs)
599 self._storage.update(
600 {key: self._track_value(
601 value, name=self._name_element(key))
602 for key, value in self._storage.items()})
603
604 def __copy__(self):
605 return type(self)(copy.copy(self._storage))

Callers

nothing calls this directly

Calls 5

_make_storageMethod · 0.95
_name_elementMethod · 0.95
__init__Method · 0.45
updateMethod · 0.45
_track_valueMethod · 0.45

Tested by

no test coverage detected