MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / UniqueInsert

Method UniqueInsert

tensorflow/core/kernels/unique_ali_op_util.h:266–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264 }
265
266 inline void UniqueInsert(const T& key) {
267 auto it = uniq_.emplace(key, next_index_);
268 if (it.second) {
269 inodes_.emplace_back(INode(next_index_, key));
270 ++next_index_;
271 }
272 }
273
274 inline const INode* GetINodeByPos(const TIndex pos) const {
275 const INode* inode = &inodes_[pos];

Callers 1

ParallelComputeV1Function · 0.80

Calls 3

INodeClass · 0.85
emplaceMethod · 0.45
emplace_backMethod · 0.45

Tested by

no test coverage detected