Home
last modified time | relevance | path

Searched refs:MMAPAllocation (Results 1 – 6 of 6) sorted by relevance

/external/tensorflow/tensorflow/lite/
Dmmap_allocation_disabled.cc22 MMAPAllocation::MMAPAllocation(const char* filename, in MMAPAllocation() function in tflite::MMAPAllocation
30 MMAPAllocation::~MMAPAllocation() {} in ~MMAPAllocation()
32 const void* MMAPAllocation::base() const { return nullptr; } in base()
34 size_t MMAPAllocation::bytes() const { return 0; } in bytes()
36 bool MMAPAllocation::valid() const { return false; } in valid()
38 bool MMAPAllocation::IsSupported() { return false; } in IsSupported()
Dmmap_allocation.cc27 MMAPAllocation::MMAPAllocation(const char* filename, in MMAPAllocation() function in tflite::MMAPAllocation
47 MMAPAllocation::~MMAPAllocation() { in ~MMAPAllocation()
54 const void* MMAPAllocation::base() const { return mmapped_buffer_; } in base()
56 size_t MMAPAllocation::bytes() const { return buffer_size_bytes_; } in bytes()
58 bool MMAPAllocation::valid() const { return mmapped_buffer_ != MAP_FAILED; } in valid()
60 bool MMAPAllocation::IsSupported() { return true; } in IsSupported()
Dallocation.h62 class MMAPAllocation : public Allocation {
64 MMAPAllocation(const char* filename, ErrorReporter* error_reporter);
65 virtual ~MMAPAllocation();
Dmodel_builder.cc51 if (mmap_file && MMAPAllocation::IsSupported()) { in GetAllocationFromFile()
52 allocation.reset(new MMAPAllocation(filename, error_reporter)); in GetAllocationFromFile()
/external/tensorflow/tensorflow/lite/delegates/nnapi/
Dnnapi_delegate_kernel.h331 std::map<const MMAPAllocation*, ANeuralNetworksMemory*>
Dnnapi_delegate.cc714 std::map<const MMAPAllocation*, ANeuralNetworksMemory*>* in NNAPIOpBuilder() argument
1445 const MMAPAllocation* mmap_alloc = in AddTensor()
1446 static_cast<const MMAPAllocation*>(tensor->allocation); in AddTensor()
1494 std::map<const MMAPAllocation*, ANeuralNetworksMemory*>* const