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

Method clear_recorded_memory

tensorflow/core/framework/op_kernel.cc:1045–1055  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1043}
1044
1045void OpKernelContext::clear_recorded_memory() {
1046 mutex_lock l(stats_mu_);
1047 temp_memory_allocated_ = 0;
1048 persistent_memory_allocated_ = 0;
1049 if (temp_tensor_buffer_and_size_) {
1050 temp_tensor_buffer_and_size_->clear();
1051 }
1052 if (persistent_alloc_ids_) {
1053 persistent_alloc_ids_->clear();
1054 }
1055}
1056
1057// OpKernel registration ------------------------------------------------------
1058

Callers 1

ComputeMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected