Home
last modified time | relevance | path

Searched refs:LogMemory (Results 1 – 17 of 17) sorted by relevance

/external/tensorflow/tensorflow/core/framework/
Dlog_memory.cc22 const string LogMemory::kLogMemoryLabel = "__LOG_MEMORY__";
24 bool LogMemory::IsEnabled() { return VLOG_IS_ON(2); } in IsEnabled()
34 LOG(INFO) << LogMemory::kLogMemoryLabel << " " << type_name << " { " in OutputToLog()
40 void LogMemory::RecordStep(const int64 step_id, const string& handle) { in RecordStep()
47 void LogMemory::RecordTensorAllocation(const string& kernel_name, in RecordTensorAllocation()
57 void LogMemory::RecordTensorDeallocation(const int64 allocation_id, in RecordTensorDeallocation()
65 void LogMemory::RecordTensorOutput(const string& kernel_name, in RecordTensorOutput()
76 void LogMemory::RecordRawAllocation(const string& operation, in RecordRawAllocation()
89 void LogMemory::RecordRawDeallocation(const string& operation, in RecordRawDeallocation()
Dlog_memory.h34 class LogMemory {
Dop_kernel.cc271 if (LogMemory::IsEnabled()) { in allocate_temp()
272 LogMemory::RecordTensorAllocation( in allocate_temp()
273 def().name(), LogMemory::OP_KERNEL_CONSTRUCTION_STEP_ID, new_temp); in allocate_temp()
296 if (LogMemory::IsEnabled()) { in allocate_temp()
297 LogMemory::RecordTensorAllocation( in allocate_temp()
298 def().name(), LogMemory::OP_KERNEL_CONSTRUCTION_STEP_ID, new_temp); in allocate_temp()
723 LogMemory::RecordTensorAllocation(params_->op_kernel->name(), in allocate_tensor()
/external/tensorflow/tensorflow/lite/delegates/flex/
Dbuffer_map.cc45 if (tensorflow::LogMemory::IsEnabled() && data() != nullptr) { in LogAllocation()
46 tensorflow::LogMemory::RecordRawAllocation( in LogAllocation()
48 tensorflow::LogMemory::EXTERNAL_TENSOR_ALLOCATION_STEP_ID, size(), in LogAllocation()
53 if (tensorflow::LogMemory::IsEnabled() && data() != nullptr) { in LogDeallocation()
54 tensorflow::LogMemory::RecordRawDeallocation( in LogDeallocation()
56 tensorflow::LogMemory::EXTERNAL_TENSOR_ALLOCATION_STEP_ID, data(), in LogDeallocation()
/external/tensorflow/tensorflow/c/
Dtf_tensor.cc41 if (LogMemory::IsEnabled() && data != nullptr) { in allocate_tensor()
42 LogMemory::RecordRawAllocation( in allocate_tensor()
43 operation, LogMemory::EXTERNAL_TENSOR_ALLOCATION_STEP_ID, len, data, in allocate_tensor()
60 if (LogMemory::IsEnabled() && data != nullptr) { in deallocate_buffer()
61 LogMemory::RecordRawDeallocation( in deallocate_buffer()
62 "TensorFlow C Api", LogMemory::EXTERNAL_TENSOR_ALLOCATION_STEP_ID, data, in deallocate_buffer()
/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dgpu_util.cc154 if (LogMemory::IsEnabled()) { in SetProtoFromGPU()
155 LogMemory::RecordRawAllocation("SetProtoFromGPU", in SetProtoFromGPU()
156 LogMemory::PROTO_BUFFER_STEP_ID, in SetProtoFromGPU()
175 if (LogMemory::IsEnabled()) { in SetProtoFromGPU()
176 LogMemory::RecordRawDeallocation("SetProtoFromGPU", in SetProtoFromGPU()
177 LogMemory::PROTO_BUFFER_STEP_ID, in SetProtoFromGPU()
Dgpu_device.cc125 if (LogMemory::IsEnabled()) { in Reinitialize()
158 if (LogMemory::IsEnabled() && ret != nullptr) { in allocate()
159 LogMemory::RecordRawAllocation(operation_, step_id_, num_bytes, ret, in allocate()
165 if (LogMemory::IsEnabled() && buffer != nullptr) { in deallocate()
166 LogMemory::RecordRawDeallocation(operation_, step_id_, buffer, allocator_, in deallocate()
208 if (LogMemory::IsEnabled()) { in asyncFree()
209 LogMemory::RecordRawDeallocation(data->operation_, data->step_id_, in asyncFree()
Dgpu_process_state.cc316 if (LogMemory::IsEnabled() && !allocator->TracksAllocationSizes()) { in GetGpuHostAllocator()
/external/tensorflow/tensorflow/core/common_runtime/
Dprocess_state.cc120 if (LogMemory::IsEnabled() && !allocator->TracksAllocationSizes()) { in GetCPUAllocator()
Dgraph_runner.cc178 args.step_id = LogMemory::CONSTANT_FOLDING_STEP_ID; in Run()
Ddirect_session.cc889 if (LogMemory::IsEnabled()) { in Run()
890 LogMemory::RecordStep(step_id, run_state_args.handle); in Run()
1001 if (LogMemory::IsEnabled()) { in PRunSetup()
1002 LogMemory::RecordStep(args.step_id, run_state_args.handle); in PRunSetup()
1469 if (LogMemory::IsEnabled() || run_state_args->is_partial_run) { in GetOrCreateExecutors()
1987 if (LogMemory::IsEnabled()) { in RunCallable()
1988 LogMemory::RecordStep(step_id, run_state_args.handle); in RunCallable()
Dexecutor.cc395 log_memory_(LogMemory::IsEnabled()), in ExecutorState()
1032 LogMemory::RecordTensorOutput(ctx->op_kernel().name(), in ProcessOutputs()
1041 LogMemory::RecordTensorOutput(ctx->op_kernel().name(), in ProcessOutputs()
/external/tensorflow/tensorflow/core/distributed_runtime/
Dgraph_mgr.cc538 if (LogMemory::IsEnabled()) { in StartParallelExecutors()
539 LogMemory::RecordStep(args.step_id, handle); in StartParallelExecutors()
/external/tensorflow/tensorflow/core/distributed_runtime/eager/
Dremote_copy_node.cc56 kernel->reset(new KernelAndDeviceOp(ctx.GetRendezvous(), ctx.LogMemory(), flr, in CreateUncachedKernelAndDeviceOp()
/external/tensorflow/tensorflow/core/common_runtime/eager/
Dcontext.h269 bool LogMemory() const { return log_memory_; } in LogMemory() function
Dexecute.cc537 ctx.GetRendezvous(), ctx.LogMemory(), flr, runner, in GetOrCreateKernelAndDevice()
Dcontext.cc95 log_memory_(LogMemory::IsEnabled()),