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

Method PredictAfterSetInputBuffer

dnnlibrary/Model.cpp:83–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void 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
94void Model::AddInput(const std::string &name, const Shaper::Shape &shape) {
95 input_names_.push_back(name);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected