View source on GitHub |
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).
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__(config=None)
Initialize self. See help(type(self)) for accurate signature.
create(
key_dtype=None,
value_dtype=None,
default_value=None,
name=None,
checkpoint=None,
init_size=None,
config=None
)
get_config()