21#include "TestMemoryManager.h"
28 if (!
tensor.is_allocatable())
32 if (
tensor.is_data_allocated())
40 allocations.push_back(
data);
46 tensor.set_data_buffer(
nullptr);
void release_memory(luci_interpreter::Tensor &tensor) final
void allocate_memory(luci_interpreter::Tensor &tensor) final
const T * data(const std::vector< T, Alloc > &v)
size_t getDataTypeSize(DataType data_type)
uint32_t num_elements(const Shape &shape)
The number of elements of a feature map of a given shape.