File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66#ifndef NNAPIEXAMPLE_MODEL_H
77#define NNAPIEXAMPLE_MODEL_H
88
9- #include < memory>
10- #include < vector>
11-
129#include < common/Shaper.h>
1310#include < common/StrKeyMap.h>
1411#include < dnnlibrary/NeuralNetworksWrapper.h>
1512
13+ #include < memory>
14+ #include < vector>
15+
1616namespace dnn {
1717class Model {
1818 friend class ModelBuilder ;
@@ -54,6 +54,8 @@ class Model {
5454 void Predict (const std::vector<T *> &inputs);
5555
5656 ~Model ();
57+ Model (const Model &) = delete ;
58+ Model &operator =(const Model &) = delete ;
5759 void SetOutputBuffer (const int32_t index, float *buffer);
5860 void SetOutputBuffer (const int32_t index, uint8_t *buffer);
5961 void SetOutputBuffer (const int32_t index, char *buffer);
@@ -64,6 +66,6 @@ class Model {
6466 std::vector<std::string> GetInputs ();
6567 std::vector<std::string> GetOutputs ();
6668};
67- }
69+ } // namespace dnn
6870
6971#endif // NNAPIEXAMPLE_MODEL_H
You can’t perform that action at this time.
0 commit comments