Home
last modified time | relevance | path

Searched refs:memory_allocator_ (Results 1 – 15 of 15) sorted by relevance

/external/tensorflow/tensorflow/lite/micro/
Dmicro_allocator.cc68 : memory_allocator_(memory_allocator) {} in MicroBuiltinDataAllocator()
71 return memory_allocator_->AllocateFromTail(size, alignment_hint); in Allocate()
79 SimpleMemoryAllocator* memory_allocator_; member in tflite::__anon679442d00111::MicroBuiltinDataAllocator
600 : memory_allocator_(memory_allocator), in MicroAllocator()
676 return memory_allocator_->AllocateFromTail(bytes, kBufferAlignment); in AllocatePersistentBuffer()
741 TF_LITE_ENSURE_STATUS(memory_allocator_->SetHeadBufferSize( in FinishPrepareNodeAllocations()
750 return memory_allocator_->GetUsedBytes(); in used_bytes()
761 memory_allocator_->AllocateFromTail( in AllocateNodeAndRegistrations()
785 MicroBuiltinDataAllocator builtin_data_allocator(memory_allocator_); in PrepareNodeAndRegistrationDataFromFlatbuffer()
848 memory_allocator_, error_reporter_, op->inputs(), &inputs_array)); in PrepareNodeAndRegistrationDataFromFlatbuffer()
[all …]
Dmicro_allocator.h262 SimpleMemoryAllocator* memory_allocator_; variable
/external/tensorflow/tensorflow/compiler/tf2tensorrt/utils/
Dtrt_engine_utils.h73 : memory_allocator_(allocator), in ExecutionContext()
84 : memory_allocator_(other.memory_allocator_), in ExecutionContext()
87 other.memory_allocator_ = nullptr; in ExecutionContext()
105 TRTBaseAllocator* memory_allocator_;
Dtrt_engine_utils.cc40 DCHECK(memory_allocator_) << "Internal error: Device memory with address " in ~ExecutionContext()
42 memory_allocator_->free(device_memory_); in ~ExecutionContext()
/external/libchrome/base/metrics/
Dpersistent_histogram_allocator.h218 return memory_allocator_.get(); in memory_allocator()
223 uint64_t Id() const { return memory_allocator_->Id(); } in Id()
224 const char* Name() const { return memory_allocator_->Name(); } in Name()
225 const void* data() const { return memory_allocator_->data(); } in data()
226 size_t length() const { return memory_allocator_->length(); } in length()
227 size_t size() const { return memory_allocator_->size(); } in size()
228 size_t used() const { return memory_allocator_->used(); } in used()
318 std::unique_ptr<PersistentMemoryAllocator> memory_allocator_; variable
Dpersistent_histogram_allocator.cc274 : memory_allocator_(std::move(memory)), in PersistentHistogramAllocator()
275 sparse_histogram_data_manager_(memory_allocator_.get()) {} in PersistentHistogramAllocator()
287 memory_allocator_->GetAsObject<PersistentHistogramData>(ref); in GetHistogram()
288 const size_t length = memory_allocator_->GetAllocSize(ref); in GetHistogram()
321 if (memory_allocator_->IsCorrupt()) in AllocateHistogram()
331 memory_allocator_->New<PersistentHistogramData>( in AllocateHistogram()
364 memory_allocator_->Allocate(ranges_bytes, kTypeIdRangesArray); in AllocateHistogram()
367 memory_allocator_->GetAsArray<HistogramBase::Sample>( in AllocateHistogram()
379 DCHECK_EQ(kTypeIdRangesArray, memory_allocator_->GetType(ranges_ref)); in AllocateHistogram()
413 memory_allocator_->GetAsReference(histogram_data); in AllocateHistogram()
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dbuffer_allocations.h43 memory_allocator_(memory_allocator) {} in BufferAllocations()
51 return memory_allocator_; in memory_allocator()
91 se::DeviceMemoryAllocator* memory_allocator_; variable
Dbuffer_allocations.cc51 memory_allocator_->Deallocate(device_ordinal_, buffer_address); in TearDown()
Dfft_thunk.h53 se::DeviceMemoryAllocator* memory_allocator_; variable
Dfft_thunk.cc33 : device_ordinal_(device_ordinal), memory_allocator_(memory_allocator) {} in FftScratchAllocator()
52 memory_allocator_->Allocate(device_ordinal_, byte_size, in AllocateBytes()
Dgpu_conv_algorithm_picker.cc58 : device_ordinal_(device_ordinal), memory_allocator_(memory_allocator) {} in ScratchAllocator()
76 se::DeviceMemoryAllocator* memory_allocator_; member in xla::gpu::__anon6437d7ed0111::ScratchAllocator
93 memory_allocator_->Allocate(device_ordinal_, byte_size, in AllocateBytes()
/external/tensorflow/tensorflow/compiler/xla/service/
Dbackend.h92 return memory_allocator_.get(); in memory_allocator()
182 std::unique_ptr<se::StreamExecutorMemoryAllocator> memory_allocator_; variable
Dbackend.cc132 memory_allocator_ = absl::make_unique<se::StreamExecutorMemoryAllocator>( in Backend()
/external/tensorflow/tensorflow/stream_executor/gpu/
Dredzone_allocator.h114 DeviceMemoryAllocator* memory_allocator_; variable
Dredzone_allocator.cc60 memory_allocator_(memory_allocator), in RedzoneAllocator()
77 memory_allocator_->Allocate(device_ordinal_, in AllocateBytes()