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

Method __init__

tensorflow/python/ops/lookup_ops.py:1811–1818  ·  view source on GitHub ↗
(self, table, name)

Source from the content-addressed store, hash-verified

1809 """SaveableObject implementation for MutableHashTable."""
1810
1811 def __init__(self, table, name):
1812 tensors = table.export()
1813 specs = [
1814 BaseSaverBuilder.SaveSpec(tensors[0], "", name + "-keys"),
1815 BaseSaverBuilder.SaveSpec(tensors[1], "", name + "-values")
1816 ]
1817 # pylint: disable=protected-access
1818 super(MutableHashTable._Saveable, self).__init__(table, specs, name)
1819
1820 def restore(self, restored_tensors, restored_shapes, name=None):
1821 del restored_shapes # unused

Callers

nothing calls this directly

Calls 2

exportMethod · 0.45
__init__Method · 0.45

Tested by

no test coverage detected