Searched refs:MMAPAllocation (Results 1 – 6 of 6) sorted by relevance
22 MMAPAllocation::MMAPAllocation(const char* filename, in MMAPAllocation() function in tflite::MMAPAllocation30 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()
27 MMAPAllocation::MMAPAllocation(const char* filename, in MMAPAllocation() function in tflite::MMAPAllocation47 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()
62 class MMAPAllocation : public Allocation {64 MMAPAllocation(const char* filename, ErrorReporter* error_reporter);65 virtual ~MMAPAllocation();
51 if (mmap_file && MMAPAllocation::IsSupported()) { in GetAllocationFromFile()52 allocation.reset(new MMAPAllocation(filename, error_reporter)); in GetAllocationFromFile()
331 std::map<const MMAPAllocation*, ANeuralNetworksMemory*>
714 std::map<const MMAPAllocation*, ANeuralNetworksMemory*>* in NNAPIOpBuilder() argument1445 const MMAPAllocation* mmap_alloc = in AddTensor()1446 static_cast<const MMAPAllocation*>(tensor->allocation); in AddTensor()1494 std::map<const MMAPAllocation*, ANeuralNetworksMemory*>* const