Skip to content

[Embedding] Support immutable EmbeddingVariable in inference mode. #438

Open
lixy9474 wants to merge 1 commit intoDeepRec-AI:deeprec2206from
lixy9474:2206_0913
Open

[Embedding] Support immutable EmbeddingVariable in inference mode. #438
lixy9474 wants to merge 1 commit intoDeepRec-AI:deeprec2206from
lixy9474:2206_0913

Conversation

@lixy9474
Copy link
Collaborator

No description provided.

}

void Lookup(K key, V* val, V* default_v) {
const V* default_value_ptr = (default_v == nullptr) ? default_value_ : default_v;
Copy link
Member

Choose a reason for hiding this comment

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

代码行80

} else {
lookup_fn_ = [](EmbeddingVar<TKey, TValue>* ev, TKey key,
TValue* val, TValue* default_v, int count) {
ev->Lookup(key, val, default_v);
Copy link
Member

Choose a reason for hiding this comment

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

少了count?

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.

3 participants