|
|
|
@@ -74,6 +74,7 @@ std::shared_ptr<GraphCell> MsModel::GenerateGraphCell(const std::vector<std::vec |
|
|
|
MS_EXCEPTION_IF_NULL(graph); |
|
|
|
auto graph_cell = std::make_shared<GraphCell>(graph); |
|
|
|
MS_EXCEPTION_IF_NULL(graph_cell); |
|
|
|
graph_cell->SetContext(model_context_); |
|
|
|
auto ret = ModelImpl::Load(graph_cell, GetDeviceID()); |
|
|
|
if (ret != kSuccess) { |
|
|
|
MS_LOG(ERROR) << "Load failed."; |
|
|
|
@@ -99,6 +100,7 @@ Status MsModel::Build() { |
|
|
|
MS_EXCEPTION_IF_NULL(graph); |
|
|
|
auto graph_cell = std::make_shared<GraphCell>(graph); |
|
|
|
MS_EXCEPTION_IF_NULL(graph_cell); |
|
|
|
graph_cell->SetContext(model_context_); |
|
|
|
auto ret = ModelImpl::Load(graph_cell, GetDeviceID()); |
|
|
|
if (ret != kSuccess) { |
|
|
|
MS_LOG(ERROR) << "Load failed."; |
|
|
|
|