Skip to content

Commit

Permalink
delete copy constructor and copy assignment op of Model according to …
Browse files Browse the repository at this point in the history
…the rule of three
  • Loading branch information
daquexian committed Nov 25, 2019
1 parent 0ff3719 commit 79ac7cb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions include/dnnlibrary/Model.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
#ifndef NNAPIEXAMPLE_MODEL_H
#define NNAPIEXAMPLE_MODEL_H

#include <memory>
#include <vector>

#include <common/Shaper.h>
#include <common/StrKeyMap.h>
#include <dnnlibrary/NeuralNetworksWrapper.h>

#include <memory>
#include <vector>

namespace dnn {
class Model {
friend class ModelBuilder;
Expand Down Expand Up @@ -54,6 +54,8 @@ class Model {
void Predict(const std::vector<T *> &inputs);

~Model();
Model(const Model &) = delete;
Model &operator=(const Model &) = delete;
void SetOutputBuffer(const int32_t index, float *buffer);
void SetOutputBuffer(const int32_t index, uint8_t *buffer);
void SetOutputBuffer(const int32_t index, char *buffer);
Expand All @@ -64,6 +66,6 @@ class Model {
std::vector<std::string> GetInputs();
std::vector<std::string> GetOutputs();
};
}
} // namespace dnn

#endif // NNAPIEXAMPLE_MODEL_H

0 comments on commit 79ac7cb

Please sign in to comment.