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

Method create_slot

tensorflow/python/ops/hash_table/hash_table.py:318–331  ·  view source on GitHub ↗
(
      self, shape, dtype, distributed_name, initializer=None, init_func=None, segment_size=None,
      collections=None, trainable=False, name=None)

Source from the content-addressed store, hash-verified

316 collections, trainable, name)
317
318 def create_slot(
319 self, shape, dtype, distributed_name, initializer=None, init_func=None, segment_size=None,
320 collections=None, trainable=False, name=None):
321 if distributed_name in self._slots:
322 k = 1
323 while "{}_{}".format(distributed_name, k) in self._slots:
324 k += 1
325 distributed_name = "{}_{}".format(distributed_name, k)
326 slot = HashTable(
327 shape, dtype, distributed_name,
328 initializer, init_func, segment_size, collections, trainable,
329 None, self._hash_table, self._concurrent_read, self._children, name)
330 self._slots[distributed_name] = slot
331 return slot
332
333 def to_proto(v, export_scope=None):
334 return None

Calls 2

HashTableClass · 0.70
formatMethod · 0.45