forked from mindspore-Ecosystem/mindspore
!11994 [MS][LITE][Develop]fix reference of nullptr
From: @lx0095 Reviewed-by: @zhang_xue_tong,@hangangqiang Signed-off-by: @zhang_xue_tong
This commit is contained in:
commit
b2fb825d89
|
@ -30,5 +30,5 @@ Graph::Graph(std::nullptr_t) : graph_data_(nullptr) {}
|
|||
|
||||
bool Graph::operator==(std::nullptr_t) const { return graph_data_ == nullptr; }
|
||||
|
||||
ModelType Graph::ModelType() const { return graph_data_->ModelType(); }
|
||||
ModelType Graph::ModelType() const { return kMindIR; }
|
||||
} // namespace mindspore
|
||||
|
|
|
@ -35,8 +35,6 @@ class Graph::GraphData {
|
|||
|
||||
std::shared_ptr<lite::Model> lite_model() { return lite_model_; }
|
||||
|
||||
enum ModelType ModelType() const { return kMindIR; }
|
||||
|
||||
private:
|
||||
std::shared_ptr<lite::Model> lite_model_;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue