Skip to content

Commit

Permalink
Fix: NCNN service model constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
CorentinB committed Dec 19, 2018
1 parent 569800a commit 633bccb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backends/ncnn/ncnnmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace dd
public:
NCNNModel():MLModel() {}
NCNNModel(const APIData &ad)
:MLModel() {
:MLModel(ad) {
if (ad.has("repository"))
this->_repo = ad.get("repository").get<std::string>();
read_from_repository(spdlog::get("api"));
Expand All @@ -51,4 +51,4 @@ namespace dd
};
}

#endif
#endif

0 comments on commit 633bccb

Please sign in to comment.