forked from mindspore-Ecosystem/mindspore
modify fallback log level
This commit is contained in:
parent
257bb3500d
commit
ea95e2c7d2
|
@ -681,7 +681,7 @@ class Parser:
|
||||||
logger.debug(f"Found '{name}'({rightmost_name}) in trope namespace: {str(trope_ns)}.")
|
logger.debug(f"Found '{name}'({rightmost_name}) in trope namespace: {str(trope_ns)}.")
|
||||||
return True
|
return True
|
||||||
|
|
||||||
logger.error(f"Not found '{name}' in mindspore supported namespace.")
|
logger.info(f"Not found '{name}' in mindspore supported namespace.")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def get_builtin_namespace_symbol(self, var: str):
|
def get_builtin_namespace_symbol(self, var: str):
|
||||||
|
|
|
@ -697,6 +697,7 @@ AnfNodePtr Parser::GenerateAnfNodeForCall(const FunctionBlockPtr &block, const A
|
||||||
|
|
||||||
bool Parser::ParseArgsInCall(const FunctionBlockPtr &block, const py::list &args,
|
bool Parser::ParseArgsInCall(const FunctionBlockPtr &block, const py::list &args,
|
||||||
std::vector<AnfNodePtr> *packed_arguments, std::vector<AnfNodePtr> *group_arguments) {
|
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(packed_arguments);
|
||||||
MS_EXCEPTION_IF_NULL(group_arguments);
|
MS_EXCEPTION_IF_NULL(group_arguments);
|
||||||
bool need_unpack = false;
|
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,
|
bool Parser::ParseKeywordsInCall(const FunctionBlockPtr &block, const py::object &node,
|
||||||
std::vector<AnfNodePtr> *packed_arguments) {
|
std::vector<AnfNodePtr> *packed_arguments) {
|
||||||
|
MS_LOG(DEBUG) << "Process ast key words in call";
|
||||||
bool need_unpack = false;
|
bool need_unpack = false;
|
||||||
py::list keywords = python_adapter::GetPyObjAttr(node, "keywords");
|
py::list keywords = python_adapter::GetPyObjAttr(node, "keywords");
|
||||||
if (!keywords.empty()) {
|
if (!keywords.empty()) {
|
||||||
|
|
|
@ -219,9 +219,7 @@ static ValueNameToConverterVector value_name_to_converter = {
|
||||||
// Monad
|
// Monad
|
||||||
{Monad::kTypeId, [](const ValuePtr &value) -> py::object { return py::none(); }},
|
{Monad::kTypeId, [](const ValuePtr &value) -> py::object { return py::none(); }},
|
||||||
// Ellipsis
|
// Ellipsis
|
||||||
{Ellipsis::kTypeId, [](const ValuePtr &value) -> py::object { return py::ellipsis(); }},
|
{Ellipsis::kTypeId, [](const ValuePtr &value) -> py::object { return py::ellipsis(); }}};
|
||||||
// Primitive
|
|
||||||
{Primitive::kTypeId, [](const ValuePtr &value) -> py::object { return py::none(); }}};
|
|
||||||
|
|
||||||
py::object ValueToPyData(const ValuePtr &value) {
|
py::object ValueToPyData(const ValuePtr &value) {
|
||||||
if (value == nullptr) {
|
if (value == nullptr) {
|
||||||
|
|
Loading…
Reference in New Issue