Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

#438
Open
lixy9474 wants to merge 1 commit into
DeepRec-AI:deeprec2206DeepRec-AI/DeepRec:deeprec2206from
lixy9474:2206_0913lixy9474/DeepRec-1:2206_0913Copy head branch name to clipboard
Open

[Embedding] Support immutable EmbeddingVariable in inference mode. #438
lixy9474 wants to merge 1 commit into
DeepRec-AI:deeprec2206DeepRec-AI/DeepRec:deeprec2206from
lixy9474:2206_0913lixy9474/DeepRec-1:2206_0913Copy head branch name to clipboard

Conversation

@lixy9474

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.