Skip to content
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

[Embedding] Enable construction of EmbeddingVariable with init_from_proto. #128

Merged
merged 1 commit into from
Mar 25, 2022

Conversation

lixy9474
Copy link
Collaborator

No description provided.

@@ -690,20 +688,21 @@ class KvResourceImportV2Op: public OpKernel {
*ptr = new EmbeddingVar<TKey, TValue>(handle_self.name(),
storage_manager,
EmbeddingConfig(emb_index_ + block_num_ * slot_index_, emb_index_,
block_num_, slotnum, opname + "-primary",
block_num_, slot_num_, opname + "-primary",
steps_to_live_, filter_freq_,
max_freq_, l2_weight_threshold_,
layout_, max_element_size_, false_positive_probability_,
counter_type_, default_value_dim_));
return (*ptr)->Init(default_values, default_value_dim_);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里逻辑重复了
InitializeOp的逻辑跟这里保持一致

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@liutongxuan liutongxuan merged commit aded932 into DeepRec-AI:main Mar 25, 2022
lixy9474 added a commit to lixy9474/DeepRec-1 that referenced this pull request Apr 14, 2022
liutongxuan added a commit to liutongxuan/DeepRec that referenced this pull request Jun 7, 2022
shanshanpt pushed a commit to shanshanpt/DeepRec-1 that referenced this pull request Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants