Browse Source

!6665 fix error print in thor optimizer training log

Merge pull request !6665 from wangmin0104/master
tags/v1.1.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
4000f24ae0
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      mindspore/ccsrc/utils/convert_utils_py.cc

+ 3
- 0
mindspore/ccsrc/utils/convert_utils_py.cc View File

@@ -146,6 +146,9 @@ py::object ValuePtrToPyData(const ValuePtr &value) {
ret = py::none();
} else if (value->isa<None>()) {
ret = py::none();
} else if (value->isa<FuncGraph>()) {
// FuncGraph is not used in the backend, return None
ret = py::none();
} else {
MS_LOG(EXCEPTION) << "Unsupported convert value: " << value->ToString() << " to a PyData.";
}


Loading…
Cancel
Save