| 38 | } |
| 39 | |
| 40 | Model::~Model() { |
| 41 | munmap(data_, data_size_); |
| 42 | nnapi_->ANeuralNetworksModel_free(model_); |
| 43 | nnapi_->ANeuralNetworksCompilation_free(compilation_); |
| 44 | nnapi_->ANeuralNetworksMemory_free(memory_); |
| 45 | } |
| 46 | |
| 47 | void Model::SetInputBuffer(const int32_t index, const float *buffer) { |
| 48 | SetInputBuffer(index, buffer, 4); |
nothing calls this directly
no outgoing calls
no test coverage detected