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

Method __init__

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

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

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

286 """
287
288 def __init__(self, *args, **kwargs):
289 """Construct a new sequence. Arguments are passed to `list()`."""
290 super(List, self).__init__()
291 self._storage = self._make_storage(*args, **kwargs)
292 for index, element in enumerate(self._storage):
293 self._storage[index] = self._track_value(
294 element, name=self._name_element(index))
295
296 def copy(self):
297 return type(self)(copy.copy(self._storage))

Callers 3

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 3

_make_storageMethod · 0.95
_name_elementMethod · 0.95
_track_valueMethod · 0.45

Tested by

no test coverage detected