forked from mindspore-Ecosystem/mindspore
!22766 Fix bug of mindir run failed
Merge pull request !22766 from JoyLvliang/fix_bug_of_mindir_run_failed
This commit is contained in:
commit
f1aeb0db7f
|
@ -211,7 +211,8 @@ class _MindsporeFunctionExecutor:
|
|||
if context.get_context("mode") == context.PYNATIVE_MODE:
|
||||
_pynative_executor.set_graph_phase(phase)
|
||||
_pynative_executor.grad_ms_function(output, *new_inputs)
|
||||
output = output[0]
|
||||
if phase.find("export") == -1:
|
||||
output = output[0]
|
||||
|
||||
return output
|
||||
|
||||
|
|
Loading…
Reference in New Issue