Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/core/framework/
Dlog_memory.cc23 const string LogMemory::kLogMemoryLabel = "__LOG_MEMORY__";
25 bool LogMemory::IsEnabled() { return VLOG_IS_ON(1); } in IsEnabled()
35 LOG(INFO) << LogMemory::kLogMemoryLabel << " " << type_name << " { " in OutputToLog()
41 void LogMemory::RecordStep(const int64 step_id, const string& handle) { in RecordStep()
48 void LogMemory::RecordTensorAllocation(const string& kernel_name, in RecordTensorAllocation()
58 void LogMemory::RecordTensorDeallocation(const int64 allocation_id, in RecordTensorDeallocation()
66 void LogMemory::RecordTensorOutput(const string& kernel_name, in RecordTensorOutput()
77 void LogMemory::RecordRawAllocation(const string& operation, in RecordRawAllocation()
90 void LogMemory::RecordRawDeallocation(const string& operation, in RecordRawDeallocation()
Dtensor.cc97 LogMemory::RecordTensorDeallocation(alloc_->AllocationId(data()), in RecordDeallocation()
456 if (LogMemory::IsEnabled()) { in ~Buffer()
740 if (buf_ != nullptr && buf_->data() != nullptr && LogMemory::IsEnabled()) { in Tensor()
741 LogMemory::RecordTensorAllocation("Unknown", LogMemory::UNKNOWN_STEP_ID, in Tensor()
755 buf_->data() != nullptr && LogMemory::IsEnabled()) { in Tensor()
756 LogMemory::RecordTensorAllocation("Unknown (with attributes)", in Tensor()
757 LogMemory::UNKNOWN_STEP_ID, *this); in Tensor()
883 if (buf_ != nullptr && buf_->data() != nullptr && LogMemory::IsEnabled()) { in FromProto()
884 LogMemory::RecordTensorAllocation("Unknown (from Proto)", in FromProto()
885 LogMemory::UNKNOWN_STEP_ID, *this); in FromProto()
Dlog_memory.h34 class LogMemory {
Dop_kernel.cc246 if (LogMemory::IsEnabled()) { in allocate_temp()
247 LogMemory::RecordTensorAllocation( in allocate_temp()
248 def_->name(), LogMemory::OP_KERNEL_CONSTRUCTION_STEP_ID, new_temp); in allocate_temp()
717 LogMemory::RecordTensorAllocation(params_->op_kernel->name(), in allocate_tensor()
/external/tensorflow/tensorflow/lite/delegates/flex/
Dbuffer_map.cc44 if (tensorflow::LogMemory::IsEnabled() && data() != nullptr) { in LogAllocation()
45 tensorflow::LogMemory::RecordRawAllocation( in LogAllocation()
47 tensorflow::LogMemory::EXTERNAL_TENSOR_ALLOCATION_STEP_ID, size(), in LogAllocation()
52 if (tensorflow::LogMemory::IsEnabled() && data() != nullptr) { in LogDeallocation()
53 tensorflow::LogMemory::RecordRawDeallocation( in LogDeallocation()
55 tensorflow::LogMemory::EXTERNAL_TENSOR_ALLOCATION_STEP_ID, data(), in LogDeallocation()
/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dgpu_util.cc155 if (LogMemory::IsEnabled()) { in SetProtoFromGPU()
156 LogMemory::RecordRawAllocation("SetProtoFromGPU", in SetProtoFromGPU()
157 LogMemory::PROTO_BUFFER_STEP_ID, in SetProtoFromGPU()
176 if (LogMemory::IsEnabled()) { in SetProtoFromGPU()
177 LogMemory::RecordRawDeallocation("SetProtoFromGPU", in SetProtoFromGPU()
178 LogMemory::PROTO_BUFFER_STEP_ID, in SetProtoFromGPU()
Dgpu_event_mgr.h137 if (LogMemory::IsEnabled()) { in FreeMemory()
138 LogMemory::RecordRawDeallocation(iu.bufrec.operation, in FreeMemory()
Dgpu_event_mgr.cc129 if (LogMemory::IsEnabled()) { in ~EventMgr()
130 LogMemory::RecordRawDeallocation(ue->bufrec.operation, in ~EventMgr()
Dgpu_device.cc123 if (LogMemory::IsEnabled()) { in Reinitialize()
156 if (LogMemory::IsEnabled() && ret != nullptr) { in allocate()
157 LogMemory::RecordRawAllocation(operation_, step_id_, num_bytes, ret, in allocate()
163 if (LogMemory::IsEnabled() && buffer != nullptr) { in deallocate()
164 LogMemory::RecordRawDeallocation(operation_, step_id_, buffer, allocator_, in deallocate()
206 if (LogMemory::IsEnabled()) { in asyncFree()
207 LogMemory::RecordRawDeallocation(data->operation_, data->step_id_, in asyncFree()
Dgpu_process_state.cc247 if (LogMemory::IsEnabled() && !allocator->TracksAllocationSizes()) { in GetGpuHostAllocator()
/external/tensorflow/tensorflow/core/common_runtime/
Dprocess_state.cc112 if (LogMemory::IsEnabled() && !allocator->TracksAllocationSizes()) { in GetCPUAllocator()
Ddirect_session.cc784 if (LogMemory::IsEnabled()) { in Run()
785 LogMemory::RecordStep(step_id, run_state_args.handle); in Run()
895 if (LogMemory::IsEnabled()) { in PRunSetup()
896 LogMemory::RecordStep(args.step_id, run_state_args.handle); in PRunSetup()
1352 if (LogMemory::IsEnabled() || run_state_args->is_partial_run) { in GetOrCreateExecutors()
1834 if (LogMemory::IsEnabled()) { in RunCallable()
1835 LogMemory::RecordStep(step_id, run_state_args.handle); in RunCallable()
Dgraph_runner.cc177 args.step_id = LogMemory::CONSTANT_FOLDING_STEP_ID; in Run()
Dexecutor.cc1380 log_memory_(LogMemory::IsEnabled()), in ExecutorState()
2051 LogMemory::RecordTensorOutput(ctx->op_kernel().name(), in ProcessOutputs()
2062 LogMemory::RecordTensorOutput(ctx->op_kernel().name(), in ProcessOutputs()
/external/tensorflow/tensorflow/core/distributed_runtime/
Dgraph_mgr.cc497 if (LogMemory::IsEnabled()) { in StartParallelExecutors()
498 LogMemory::RecordStep(args.step_id, handle); in StartParallelExecutors()
/external/tensorflow/tensorflow/core/common_runtime/eager/
Dcontext.h158 bool LogMemory() const { return log_memory_; } in LogMemory() function
Dcontext.cc68 log_memory_(LogMemory::IsEnabled()), in EagerContext()
Dexecute.cc452 ctx->GetRendezvous(), ctx->LogMemory(), flr, runner, in EagerLocalExecute()
/external/tensorflow/tensorflow/c/
Dc_api.cc175 if (tensorflow::LogMemory::IsEnabled() && data != nullptr) { in allocate_tensor()
176 tensorflow::LogMemory::RecordRawAllocation( in allocate_tensor()
177 operation, tensorflow::LogMemory::EXTERNAL_TENSOR_ALLOCATION_STEP_ID, in allocate_tensor()
184 if (tensorflow::LogMemory::IsEnabled() && data != nullptr) { in deallocate_buffer()
185 tensorflow::LogMemory::RecordRawDeallocation( in deallocate_buffer()
187 tensorflow::LogMemory::EXTERNAL_TENSOR_ALLOCATION_STEP_ID, data, in deallocate_buffer()