17#ifdef USE_STATIC_ALLOC
19#ifndef LUCI_INTERPRETER_STATIC_MEMORY_MANAGER_H
20#define LUCI_INTERPRETER_STATIC_MEMORY_MANAGER_H
22#include "luci_interpreter/core/DataType.h"
23#include "luci_interpreter/core/Tensor.h"
31class StaticMemoryManager
42 int32_t output_req_size)
43 : _input_buffer_ptr(nullptr), _buffer_ptr(nullptr), _output_buffer_ptr(nullptr),
44 _input_req_size(input_req_size), _buffer_req_size(buffer_req_size),
45 _output_req_size(output_req_size)
52 uint8_t *allocate_memory_for_input(int32_t
offset);
54 uint8_t *allocate_memory_for_output(int32_t
offset);
59 void allocate_input_buf();
62 void allocate_output_buf();
65 void allocate_computing_buf();
68 void release_computing_buf();
70 void release_input_buf();
72 void release_output_buf();
77 uint8_t *_input_buffer_ptr;
78 uint8_t *_output_buffer_ptr;
81 int32_t _input_req_size{};
82 int32_t _buffer_req_size{};
83 int32_t _output_req_size{};
void allocate_memory(luci_interpreter::Tensor &tensor) final
StaticMemoryManager()=delete
__global uchar * offset(const Image *img, int x, int y)