From 1dce6b9448ceaf3420fe90d309365804c977bb9b Mon Sep 17 00:00:00 2001 From: kswang Date: Wed, 21 Apr 2021 20:13:31 +0800 Subject: [PATCH] load input for graph executable --- mindspore/ccsrc/backend/session/session_basic.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mindspore/ccsrc/backend/session/session_basic.h b/mindspore/ccsrc/backend/session/session_basic.h index 429048391c1..7aecdf73c1f 100644 --- a/mindspore/ccsrc/backend/session/session_basic.h +++ b/mindspore/ccsrc/backend/session/session_basic.h @@ -197,6 +197,9 @@ class SessionBasic : public std::enable_shared_from_this { void LoadInputs(const GraphId &graph_id, const std::vector &inputs_const) { auto kernel_graph = GetGraph(graph_id); MS_EXCEPTION_IF_NULL(kernel_graph); + if (!kernel_graph->executable()) { + return; + } MS_LOG(INFO) << "Load inputs"; LoadInputData(kernel_graph, inputs_const); }