MCPcopy 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
102bool SelectedRowsImpl::HasKey(int64_t key) const {
103 return std::find(rows_.begin(), rows_.end(), key) == rows_.end() ? false
104 : true;
105}
106
107int64_t SelectedRowsImpl::AutoGrownIndex(int64_t key,
108 bool auto_grown,

Callers 2

TESTFunction · 0.45
TESTFunction · 0.45

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by 2

TESTFunction · 0.36
TESTFunction · 0.36