| 25 | template void Model::Predict<uint8_t>(const std::vector<uint8_t *> &); |
| 26 | |
| 27 | void Model::PrepareForExecution() { |
| 28 | if (compilation_ == nullptr) { |
| 29 | throw std::invalid_argument( |
| 30 | "Error in PrepareForExecution, compilation_ == nullptr"); |
| 31 | } |
| 32 | THROW_ON_ERROR( |
| 33 | nnapi_->ANeuralNetworksExecution_create(compilation_, &execution_)); |
| 34 | prepared_for_exe_ = true; |
| 35 | } |
| 36 | |
| 37 | Model::Model() : nnapi_(NnApiImplementation()) { |
| 38 | } |
nothing calls this directly
no outgoing calls
no test coverage detected