| 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 |