-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add reserved_key_start_bit option to config hkv #408
Conversation
e452633
to
4190c14
Compare
@LinGeLin for review |
c32b529
to
a9e1edc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding document and a unitive default value of reserved_key_start_bit may be better.
@@ -308,6 +308,7 @@ REGISTER_OP(PREFIX_OP_NAME(HkvHashTableOfTensors)) | |||
.Attr("max_hbm_for_vectors: int = 0") | |||
.Attr("step_per_epoch: int = 0") | |||
.Attr("strategy: int = 0") | |||
.Attr("reserved_key_start_bit: int = 0") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default value of reserved_key_start_bit is better to be same as python code which is 1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NVIDIA-Merlin/HierarchicalKV#191 set the default to 0
@@ -79,6 +79,7 @@ def __init__( | |||
evict_strategy=HkvEvictStrategy.LRU, | |||
step_per_epoch=0, | |||
gen_scores_fn=None, | |||
reserved_key_start_bit=0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A simple explanation of config reserved_key_start_bit in document docs/api_docs/tfra/dynamic_embedding/HkvHashTableConfig.md, that would be better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Great job! |
Description
Brief Description of the PR:
Fixes # (issue)
Type of change
Checklist:
How Has This Been Tested?
If you're adding a bugfix or new feature please describe the tests that you ran to verify your changes:
*