| 81 | } |
| 82 | |
| 83 | void Model::PredictAfterSetInputBuffer() { |
| 84 | ANeuralNetworksEvent *event = nullptr; |
| 85 | THROW_ON_ERROR( |
| 86 | nnapi_->ANeuralNetworksExecution_startCompute(execution_, &event)); |
| 87 | THROW_ON_ERROR(nnapi_->ANeuralNetworksEvent_wait(event)); |
| 88 | |
| 89 | nnapi_->ANeuralNetworksEvent_free(event); |
| 90 | nnapi_->ANeuralNetworksExecution_free(execution_); |
| 91 | prepared_for_exe_ = false; |
| 92 | } |
| 93 | |
| 94 | void Model::AddInput(const std::string &name, const Shaper::Shape &shape) { |
| 95 | input_names_.push_back(name); |
nothing calls this directly
no outgoing calls
no test coverage detected