Skip to content

Latest commit

 

History

History
96 lines (58 loc) · 2.47 KB

CuckooHashTableCreator.md

File metadata and controls

96 lines (58 loc) · 2.47 KB

tfra.dynamic_embedding.CuckooHashTableCreator

View source on GitHub




Class CuckooHashTableCreator

A generic KV table creator.

KV table instance will be created by the create function with config. And also a config class for specific table instance backend should be inited before callling the creator function. And then, the KVCreator class instance will be passed to the Variable class for creating the real KV table backend(TF resource).

Example usage:

Due to CuckooHashTableConfig include nothing for parameter default satisfied. Just setting the parameter saver is enough.

cuckoo_creator=tfra.dynamic_embedding.CuckooHashTableCreator(saver=de.FileSystemSaver())

__init__

View source

__init__(config=None)

Initialize self. See help(type(self)) for accurate signature.

Methods

create

View source

create(
    key_dtype=None,
    value_dtype=None,
    default_value=None,
    name=None,
    checkpoint=None,
    init_size=None,
    config=None
)

get_config

View source

get_config()