Browse Source

modify fallback log level

tags/v1.6.0
Margaret_wangrui 4 years ago
parent
commit
ea95e2c7d2
3 changed files with 4 additions and 4 deletions
  1. +1
    -1
      mindspore/_extends/parse/parser.py
  2. +2
    -0
      mindspore/ccsrc/pipeline/jit/parse/parse.cc
  3. +1
    -3
      mindspore/ccsrc/utils/convert_utils_py.cc

+ 1
- 1
mindspore/_extends/parse/parser.py View File

@@ -681,7 +681,7 @@ class Parser:
logger.debug(f"Found '{name}'({rightmost_name}) in trope namespace: {str(trope_ns)}.")
return True

logger.error(f"Not found '{name}' in mindspore supported namespace.")
logger.info(f"Not found '{name}' in mindspore supported namespace.")
return False

def get_builtin_namespace_symbol(self, var: str):


+ 2
- 0
mindspore/ccsrc/pipeline/jit/parse/parse.cc View File

@@ -697,6 +697,7 @@ AnfNodePtr Parser::GenerateAnfNodeForCall(const FunctionBlockPtr &block, const A

bool Parser::ParseArgsInCall(const FunctionBlockPtr &block, const py::list &args,
std::vector<AnfNodePtr> *packed_arguments, std::vector<AnfNodePtr> *group_arguments) {
MS_LOG(DEBUG) << "Process ast args in call";
MS_EXCEPTION_IF_NULL(packed_arguments);
MS_EXCEPTION_IF_NULL(group_arguments);
bool need_unpack = false;
@@ -723,6 +724,7 @@ bool Parser::ParseArgsInCall(const FunctionBlockPtr &block, const py::list &args

bool Parser::ParseKeywordsInCall(const FunctionBlockPtr &block, const py::object &node,
std::vector<AnfNodePtr> *packed_arguments) {
MS_LOG(DEBUG) << "Process ast key words in call";
bool need_unpack = false;
py::list keywords = python_adapter::GetPyObjAttr(node, "keywords");
if (!keywords.empty()) {


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

@@ -219,9 +219,7 @@ static ValueNameToConverterVector value_name_to_converter = {
// Monad
{Monad::kTypeId, [](const ValuePtr &value) -> py::object { return py::none(); }},
// Ellipsis
{Ellipsis::kTypeId, [](const ValuePtr &value) -> py::object { return py::ellipsis(); }},
// Primitive
{Primitive::kTypeId, [](const ValuePtr &value) -> py::object { return py::none(); }}};
{Ellipsis::kTypeId, [](const ValuePtr &value) -> py::object { return py::ellipsis(); }}};

py::object ValueToPyData(const ValuePtr &value) {
if (value == nullptr) {


Loading…
Cancel
Save