Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PaddlePaddle/Paddle
/ HasKey
Method
HasKey
paddle/phi/core/selected_rows_impl.cc:102–105 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
100
}
101
102
bool SelectedRowsImpl::HasKey(int64_t key) const {
103
return std::find(rows_.begin(), rows_.end(), key) == rows_.end() ? false
104
: true;
105
}
106
107
int64_t SelectedRowsImpl::AutoGrownIndex(int64_t key,
108
bool auto_grown,
Callers
2
TEST
Function · 0.45
TEST
Function · 0.45
Calls
2
begin
Method · 0.45
end
Method · 0.45
Tested by
2
TEST
Function · 0.36
TEST
Function · 0.36