MCPcopy Create free account
hub / github.com/JDAI-CV/DNNLibrary / PrepareForExecution

Method PrepareForExecution

dnnlibrary/Model.cpp:27–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25template void Model::Predict<uint8_t>(const std::vector<uint8_t *> &);
26
27void 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
37Model::Model() : nnapi_(NnApiImplementation()) {
38}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected