Home
last modified time | relevance | path

Searched defs:HashmapEntry (Results 1 – 1 of 1) sorted by relevance

/third_party/mindspore/mindspore-src/source/mindspore/ccsrc/utils/
Dcache_embedding_hashmap_struct.h30 struct HashmapEntry { struct
31 T key_;
32 T value_;
33 T step_;
34 T tag_;
36 bool IsEmpty() const { return tag_ == kNullTag; } in IsEmpty()
38 bool IsUsing(const T train_step) const { return step_ >= (train_step - 1); } in IsUsing()
40 bool IsKey(const T emb_idx) const { return key_ == emb_idx; } in IsKey()
42 void SetEmpty() { tag_ = kNullTag; } in SetEmpty()