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

Method DeDup

tensorflow/core/kernels/unique_ali_op_util.h:285–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283 }
284
285 bool DeDup(const TIndex pos, const UniqueSubMap& prior_map) {
286 INode* my_inode = &inodes_[pos];
287 if (my_inode->owner_ptr_ != nullptr) { return false; }
288 const INode* prior_inode = prior_map.GetINodeByKey(my_inode->key_);
289 if (prior_inode == nullptr) { return false; }
290 my_inode->owner_ptr_ = prior_inode;
291 return true;
292 }
293
294 bool TryIndexAndGetKey(const TIndex pos, const TIndex new_id, T* out) {
295 INode* inode = &inodes_[pos];

Callers 1

ParallelComputeV1Function · 0.80

Calls 1

GetINodeByKeyMethod · 0.80

Tested by

no test coverage detected