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

Method persistent_alloc_ids

tensorflow/core/framework/op_kernel.cc:1035–1043  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1033}
1034
1035std::vector<int64> OpKernelContext::persistent_alloc_ids() const {
1036 mutex_lock l(stats_mu_);
1037 if (persistent_alloc_ids_) {
1038 return std::vector<int64>(persistent_alloc_ids_->begin(),
1039 persistent_alloc_ids_->end());
1040 } else {
1041 return std::vector<int64>();
1042 }
1043}
1044
1045void OpKernelContext::clear_recorded_memory() {
1046 mutex_lock l(stats_mu_);

Callers 2

SetMemoryMethod · 0.80
UpdateStatsFunction · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected